feat(session-select): added Unicorn support (Rhino Linux XFCE rebrending)

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-06-10 09:11:17 +05:00
parent 9e31dcb046
commit aed7041e7b
2 changed files with 5 additions and 3 deletions

View File

@ -91,7 +91,7 @@ case "$session" in
[[ "$KDE6" != "true" ]] && session_launcher="plasmawayland"
elif [[ "$de_normalized" == *hyprland* ]]; then
session_launcher="hyprland"
elif [[ "$de_normalized" == *xfce* ]]; then
elif [[ "$de_normalized" == *xfce* && "$de_normalized" != *unicorn* ]]; then
session_launcher="xfce-wayland"
fi
else
@ -104,6 +104,8 @@ case "$session" in
[[ "$KDE6" != "true" ]] && session_launcher="plasma"
elif [[ "$de_normalized" == *mate* ]]; then
session_launcher="mate"
elif [[ "$de_normalized" == *unicorn* ]]; then
session_launcher="unicorn"
elif [[ "$de_normalized" == *xfce* ]]; then
session_launcher="xfce"
fi

View File

@ -7,7 +7,7 @@ CONFIG_FILE="$HOME/.config/gamescope-session-type"
if [[ -f "$CONFIG_FILE" ]] && grep -q 'autologin=true' "$CONFIG_FILE"; then
XDG_DESKTOP=$(echo "${XDG_CURRENT_DESKTOP,,}")
if [[ "$XDG_DESKTOP" == *gnome* || "$XDG_DESKTOP" == *onix* ]]; then
if [[ "$XDG_DESKTOP" == *gnome* ]]; then
exec gnome-session-quit --no-prompt
elif [[ "$XDG_DESKTOP" == *kde* ]]; then
VERSION=$(grep -E '^X-KDE-PluginInfo-Version=' /usr/share/xsessions/plasmax11.desktop 2>/dev/null | cut -d'=' -f2)
@ -21,6 +21,6 @@ if [[ -f "$CONFIG_FILE" ]] && grep -q 'autologin=true' "$CONFIG_FILE"; then
elif [[ "$XDG_DESKTOP" == *hyprland* ]]; then
exec loginctl terminate-user "$(id -u)"
elif [[ "$XDG_DESKTOP" == *xfce* ]]; then
exec xfce4-session-logout --logout
exec xfce4-session-logout --logout
fi
fi