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"
|
[[ "$KDE6" != "true" ]] && session_launcher="plasmawayland"
|
||||||
elif [[ "$de_normalized" == *hyprland* ]]; then
|
elif [[ "$de_normalized" == *hyprland* ]]; then
|
||||||
session_launcher="hyprland"
|
session_launcher="hyprland"
|
||||||
|
elif [[ "$de_normalized" == *xfce* ]]; then
|
||||||
|
session_launcher="xfce-wayland"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ "$de_normalized" == *gnome* ]]; then
|
if [[ "$de_normalized" == *gnome* ]]; then
|
||||||
@ -96,6 +98,8 @@ case "$session" in
|
|||||||
[[ "$KDE6" != "true" ]] && session_launcher="plasma"
|
[[ "$KDE6" != "true" ]] && session_launcher="plasma"
|
||||||
elif [[ "$de_normalized" == *mate* ]]; then
|
elif [[ "$de_normalized" == *mate* ]]; then
|
||||||
session_launcher="mate"
|
session_launcher="mate"
|
||||||
|
elif [[ "$de_normalized" == *xfce* ]]; then
|
||||||
|
session_launcher="xfce"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
create_sentinel=1
|
create_sentinel=1
|
||||||
|
@ -20,5 +20,7 @@ if [[ -f "$CONFIG_FILE" ]] && grep -q 'autologin=true' "$CONFIG_FILE"; then
|
|||||||
exec mate-session-save --force-logout
|
exec mate-session-save --force-logout
|
||||||
elif [[ "$XDG_DESKTOP" == *hyprland* ]]; then
|
elif [[ "$XDG_DESKTOP" == *hyprland* ]]; then
|
||||||
exec loginctl terminate-user "$(id -u)"
|
exec loginctl terminate-user "$(id -u)"
|
||||||
|
elif [[ "$XDG_DESKTOP" == *xfce* ]]; then
|
||||||
|
exec xfce4-session-logout --logout
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user