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"
|
||||
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
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user