Open zetaPRIME opened 1 year ago
If I'm not wrong apps are launched with DISPLAY
set, WAYLAND_DISPLAY
unset and XDG_SESSION_TYPE=x11
, so they should try to use X11, and some of them do (try OBS Studio for example, see also #842).
Ideally apps should honor the XDG_SESSION_TYPE
variable.
Some possible workarounds:
WAYLAND_DISPLAY
to a bogus value as you say.kwin_wayland
does have the --socket
option, maybe you can tweak your script to do that.I tried to look into that second one, but I couldn't determine if there was a way to make kwin_wayland_wrapper
specifically use a particular socket name.
Maybe it's easy to do manually what the wrapper does?
https://github.com/KDE/kwin/blob/master/src/helpers/wayland_wrapper/kwin_wrapper.cpp
Your system information
Please describe your issue in as much detail as possible:
Expectation: Applications launched from within Steam attach to gamescope as normal and thus display under their application within Game Mode.
Reality: If a nested Plasma session is running, non-Steam (and only non-Steam) applications attach to the Plasma session instead of gamescope.
Steps for reproducing this issue:
--nosocket=wayland
and relaunch; it should attach to gamescope as expected this time.Suggested fix:
Set the
WAYLAND_DISPLAY
environment variable by default when launching a non-Steam title, either to a value valid for gamescope, or to an explicitly invalid value (such asno
) to prevent the host application from automatically tryingwayland-0
and getting slurped into Plasma as a result.