feat(session-select): added Unicorn support (Rhino Linux XFCE rebrending)
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -91,7 +91,7 @@ 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
|
elif [[ "$de_normalized" == *xfce* && "$de_normalized" != *unicorn* ]]; then
|
||||||
session_launcher="xfce-wayland"
|
session_launcher="xfce-wayland"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@ -104,6 +104,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" == *unicorn* ]]; then
|
||||||
|
session_launcher="unicorn"
|
||||||
elif [[ "$de_normalized" == *xfce* ]]; then
|
elif [[ "$de_normalized" == *xfce* ]]; then
|
||||||
session_launcher="xfce"
|
session_launcher="xfce"
|
||||||
fi
|
fi
|
||||||
|
@ -7,7 +7,7 @@ CONFIG_FILE="$HOME/.config/gamescope-session-type"
|
|||||||
if [[ -f "$CONFIG_FILE" ]] && grep -q 'autologin=true' "$CONFIG_FILE"; then
|
if [[ -f "$CONFIG_FILE" ]] && grep -q 'autologin=true' "$CONFIG_FILE"; then
|
||||||
XDG_DESKTOP=$(echo "${XDG_CURRENT_DESKTOP,,}")
|
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
|
exec gnome-session-quit --no-prompt
|
||||||
elif [[ "$XDG_DESKTOP" == *kde* ]]; then
|
elif [[ "$XDG_DESKTOP" == *kde* ]]; then
|
||||||
VERSION=$(grep -E '^X-KDE-PluginInfo-Version=' /usr/share/xsessions/plasmax11.desktop 2>/dev/null | cut -d'=' -f2)
|
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
|
elif [[ "$XDG_DESKTOP" == *hyprland* ]]; then
|
||||||
exec loginctl terminate-user "$(id -u)"
|
exec loginctl terminate-user "$(id -u)"
|
||||||
elif [[ "$XDG_DESKTOP" == *xfce* ]]; then
|
elif [[ "$XDG_DESKTOP" == *xfce* ]]; then
|
||||||
exec xfce4-session-logout --logout
|
exec xfce4-session-logout --logout
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user