From 9a55864e81b9e0f3cf31862724b738349402c6de Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Sun, 12 Apr 2026 09:47:59 +0200 Subject: [PATCH] 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. --- data/start-cosmic | 1 + 1 file changed, 1 insertion(+) diff --git a/data/start-cosmic b/data/start-cosmic index 73df86d..c91f463 100755 --- a/data/start-cosmic +++ b/data/start-cosmic @@ -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