fix(deck): Disable desktop-autologin from gamescope-autologin directly

After Steam has updated, outright disable desktop-autologin if it's enabled
This commit is contained in:
RJ Trujillo 2023-09-12 16:17:36 -06:00
parent ebfd9782da
commit 975986f849

View File

@ -15,4 +15,7 @@ fi
if [[ -f /var/home/$USER/.local/share/Steam/ubuntu12_32/steamui.so ]]; then
sed -i 's/.*Session=.*/Session=gamescope-session.desktop/g' ${SDDM_CONF}
sed -i 's/.*User=.*/User='${USER}'/g' ${SDDM_CONF}
if systemctl is-enabled --quiet desktop-autologin; then
systemctl disable --now desktop-autologin
fi
fi