From 91d53625f59f480a7cedf8ebe71619e0f3908cc8 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sat, 12 Jul 2025 12:32:21 +0500 Subject: [PATCH] make portprotonqt-desktop-return simply Signed-off-by: Boris Yumankulov --- usr/bin/portprotonqt-desktop-return | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/usr/bin/portprotonqt-desktop-return b/usr/bin/portprotonqt-desktop-return index 16db3fb..84abb7a 100755 --- a/usr/bin/portprotonqt-desktop-return +++ b/usr/bin/portprotonqt-desktop-return @@ -5,22 +5,5 @@ 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* ]]; 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) - if [[ "$VERSION" =~ ^6\..* ]]; then - exec qdbus org.kde.Shutdown /Shutdown org.kde.Shutdown.logout - else - exec qdbus org.kde.ksmserver /KSMServer logout 0 0 0 - fi - elif [[ "$XDG_DESKTOP" == *mate* ]]; 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 + exec loginctl terminate-user "$(id -u)" fi