Skip to content

Commit

Permalink
fix(deck): Add Wayland support to GNOME autologin (#133)
Browse files Browse the repository at this point in the history
Missed this one
  • Loading branch information
EyeCantCU authored Aug 11, 2023
1 parent 4216f90 commit 2c36671
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion system_files/deck/silverblue/usr/bin/gnome-autologin
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

source /etc/default/desktop-wayland

USER=$(id -nu 1000)

# SteamOS SDDM config
Expand All @@ -10,5 +12,9 @@ if [ ! -f ${SDDM_CONF} ]; then
fi

# Configure autologin
sed -i 's/.*Session=.*/Session=gnome-xorg.desktop/g' ${SDDM_CONF}
if ${DESKTOP_WAYLAND}; then
sed -i 's/.*Session=.*/Session=gnome-session.desktop/g' ${SDDM_CONF}
else
sed -i 's/.*Session=.*/Session=gnome-xorg.desktop/g' ${SDDM_CONF}
fi
sed -i 's/.*User=.*/User='${USER}'/g' ${SDDM_CONF}

0 comments on commit 2c36671

Please sign in to comment.