Score:2

How do I make all apps use wayland instead of xwayland?

sa flag

I enabled Wayland on my Ubuntu 20.04.

It seems that every app needs to be configured individually to use Wayland and not xwayland.

How do I make all apps that support wayland use wayland?

For firefox I had to add MOZ_ENABLE_WAYLAND=1 in /usr/share/applications/firefox.desktop for it to start using wayland instead of xwayland.

Similarly, texstudio, slack, spyder, VScode, joplin, mendeley and essentially every non built-in app does not, whereas I think at least some of them can be configured to launch with wayland manually.

ChanganAuto avatar
us flag
They do, no additional configuration needed. This seems to be a X-Y problem.
sa flag
@ChanganAuto then essentially every app is X-Y
sa flag
@Nmath here you go
Score:1
cn flag

You cannot make all applications run directly on Wayland. Only applications that are prepared for it can run natively on Wayland. Some apps, like Firefox, appear, for now, to be configured to run on Xorg even if they support Wayland. Therefore, by default, they run on xwayland if you run Wayland, but, as you discovered, that can be changed.

Yes, it depends on the individual application. A big many apps not yet prepared for Wayland will only run on xwayland.

sa flag
I understand that not all applications support wayland. I am asking how to configure those that do to run on wayland.
vanadium avatar
cn flag
The answer is in my answer: it depends on the application. You may feel for yourself that the trick with Firefox already seems to be quite specific for Mozilla products.
bd flag
If it depends on the application, then I guess the next step is to ask a new question on Ask Ubuntu for each application that you want to do this with.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.