sway: Set XDG_CURRENT_DESKTOP=sway
This seems like a good idea in general and will at least make it easier to get screen sharing to work (but still requires a proper NixOS configuration including xdg-desktop-portal-wlr). Note: It isn't necessary to set XDG_SESSION_TYPE=wayland as wlroots already takes care of it (currently at least for the logind and libseat session backends, the next wlroots release will require libseat): https://github.com/swaywm/wlroots/blob/4839664a9209e2829f3f90006065229b5c17007c/backend/session/session.c#L80
This commit is contained in:
@@ -14,6 +14,7 @@ let
|
||||
baseWrapper = writeShellScriptBin "sway" ''
|
||||
set -o errexit
|
||||
if [ ! "$_SWAY_WRAPPER_ALREADY_EXECUTED" ]; then
|
||||
export XDG_CURRENT_DESKTOP=sway
|
||||
${extraSessionCommands}
|
||||
export _SWAY_WRAPPER_ALREADY_EXECUTED=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user