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:
parent
02a4c58c3d
commit
9a55864e81
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue