git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit9716bb8944a38bae80b1003f4258da41b71c75df authorMichael Weiss <dev.primeos@gmail.com> dateThu 6 May 2021, 15:27 (6 years ago) parentf240b1f
1 file changed+1
pkgs/applications/window-managers/sway/wrapper.nix+1
pkgs/applications/window-managers/sway/wrapper.nix+1
@@ -14,6 +14,7 @@ let
1414 baseWrapper = writeShellScriptBin "sway" ''
1515 set -o errexit
1616 if [ ! "$_SWAY_WRAPPER_ALREADY_EXECUTED" ]; then
17+ export XDG_CURRENT_DESKTOP=sway
1718 ${extraSessionCommands}
1819 export _SWAY_WRAPPER_ALREADY_EXECUTED=1
1920 fi