From cbb259f3ee45c209921b4004152829a6a86d928e Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Sat, 5 Aug 2023 13:21:33 -0600 Subject: [PATCH] fix: Avoid conflict between gamescope-autologin and session selector Addresses an issue where gamescope-autologin doesn't function correctly if this file exists after starting Steam. Appears isolated to GNOME. This doesn't cause issues with sessions switching as the file gets created by steamos-session-select regardless --- system_files/deck/shared/usr/bin/gamescope-autologin | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system_files/deck/shared/usr/bin/gamescope-autologin b/system_files/deck/shared/usr/bin/gamescope-autologin index 786b5d6f..4f6bb85a 100755 --- a/system_files/deck/shared/usr/bin/gamescope-autologin +++ b/system_files/deck/shared/usr/bin/gamescope-autologin @@ -4,6 +4,12 @@ USER=$(id -nu 1000) # SteamOS SDDM config SDDM_CONF='/etc/sddm.conf.d/steamos.conf' +AUTOLOGIN_CONF='/etc/sddm.conf.d/zz-steamos-autologin.conf' + +# Avoid autologin conflict +if [[ -f ${AUTOLOGIN_CONF} ]]; then + rm -f ${AUTOLOGIN_CONF} +fi # Configure autologin sed -i 's/.*Session=.*/Session=gamescope-session.desktop/g' ${SDDM_CONF}