Hi. I am trying to use wayland as where only possible, but the problem is, many apps start in Xwayland by default and I have to troubleshoot almost every app. For example for ungoogled chromium I had to change flag so it does use wayland now, in Heroic Games Launcher flatpak I had to add variable “ELECTRON_OZONE_PLATFORM_HINT=wayland”, in spotify flatpak I had to enable “Wayland windowing system” in flatseal (socket=wayland), for KeepassXC I had to install qt5wayland package. Now I tried to run Go2TV program and it is again running in xwayland. I feel like its so much of troubleshooting for literally every app, and every app requires different solution. Is there any easier way to force wayland to be used, but in the same time use xwayland only for incompatible apps?
I need to mention I am nvidia user, so I don’t like xwayland, I don’t want to encounter flickering that is why I want to use it as much as possible.
Thanks in advance.
That is down to the specific applications that you are using (not a Wayland compositor issue). If they need an environment variable set to have them start as a Wayland client, then you could add those to ~/.profile as required. Creating you own custom .desktop files (with appropriate flags) might be a workable solution for some applications.
FWIW, a similar thread…
https://www.reddit.com/r/linuxquestions/comments/16qi91t/how_to_run_software_such_as_spotify_on_wayland/
So I have to troubleshoot every app if I want it to run in wayland by default? No way of forcing it? I mean, if some specific app does support wayland, why does it start in xwayland?
That’s a question for the respective app developers. It largely depends on the underlying frameworks and technologies the application was built with, which determine its level of Wayland support. It’s ultimately up to the app and how it interacts with Wayland.
Aight, thank you then.
You can try unsetting $DISPLAY
and hope that applications will then (try to) use Wayland. But I expect that if an application supported Wayland at all, it would prefer Wayland anyway.
I totally feel you.
I just reinstalled my system from scratch and man is it painful to go all in Wayland!
Many flatpaks still ship with X11 only, so that I have to spend some fun time setting Wayland via Flatseal (or KDE’s Flatpak permissions module).
As for the electron thingy, I have that export of the var set in my .profile so that all electron-based apps see “auto”.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.