fix: set XDG_SESSION_DESKTOP in start-cosmic

On NixOS, autologin bypasses cosmic-greeter and instead launches start-cosmic
directly. The XDG_SESSION_DESKTOP variable previously wasn't set hence, which
would break functionality like session commands ("Power Off") in the launcher.
This commit is contained in:
Tony Wasserka 2026-04-12 09:47:59 +02:00 committed by Jacob Kauffmann
parent 02a4c58c3d
commit 9a55864e81

View file

@ -29,6 +29,7 @@ if [ -n "${SHELL}" ]; then
fi
export XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP:=COSMIC}"
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:=COSMIC}"
export XDG_SESSION_TYPE="${XDG_SESSION_TYPE:=wayland}"
export _JAVA_AWT_WM_NONREPARENTING=1
export GDK_BACKEND=wayland,x11