feat(session-select): added XFCE support

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-06-10 08:52:01 +05:00
parent 23c5feef3c
commit 9f4592c873
2 changed files with 6 additions and 0 deletions

View File

@ -87,6 +87,8 @@ case "$session" in
[[ "$KDE6" != "true" ]] && session_launcher="plasmawayland"
elif [[ "$de_normalized" == *hyprland* ]]; then
session_launcher="hyprland"
elif [[ "$de_normalized" == *xfce* ]]; then
session_launcher="xfce-wayland"
fi
else
if [[ "$de_normalized" == *gnome* ]]; then
@ -96,6 +98,8 @@ case "$session" in
[[ "$KDE6" != "true" ]] && session_launcher="plasma"
elif [[ "$de_normalized" == *mate* ]]; then
session_launcher="mate"
elif [[ "$de_normalized" == *xfce* ]]; then
session_launcher="xfce"
fi
fi
create_sentinel=1

View File

@ -20,5 +20,7 @@ if [[ -f "$CONFIG_FILE" ]] && grep -q 'autologin=true' "$CONFIG_FILE"; then
exec mate-session-save --force-logout
elif [[ "$XDG_DESKTOP" == *hyprland* ]]; then
exec loginctl terminate-user "$(id -u)"
elif [[ "$XDG_DESKTOP" == *xfce* ]]; then
exec xfce4-session-logout --logout
fi
fi