feat(session-select): added XFCE support
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user