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
This commit is contained in:
RJ Trujillo 2023-08-05 13:21:33 -06:00 committed by GitHub
parent 58e9e084bf
commit cbb259f3ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}