Skip to content

Commit 2c36671

Browse files
authored
fix(deck): Add Wayland support to GNOME autologin (#133)
Missed this one
1 parent 4216f90 commit 2c36671

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

system_files/deck/silverblue/usr/bin/gnome-autologin

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
source /etc/default/desktop-wayland
4+
35
USER=$(id -nu 1000)
46

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

1214
# Configure autologin
13-
sed -i 's/.*Session=.*/Session=gnome-xorg.desktop/g' ${SDDM_CONF}
15+
if ${DESKTOP_WAYLAND}; then
16+
sed -i 's/.*Session=.*/Session=gnome-session.desktop/g' ${SDDM_CONF}
17+
else
18+
sed -i 's/.*Session=.*/Session=gnome-xorg.desktop/g' ${SDDM_CONF}
19+
fi
1420
sed -i 's/.*User=.*/User='${USER}'/g' ${SDDM_CONF}

0 commit comments

Comments
 (0)