We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4216f90 commit 2c36671Copy full SHA for 2c36671
system_files/deck/silverblue/usr/bin/gnome-autologin
@@ -1,5 +1,7 @@
1
#!/usr/bin/env bash
2
3
+source /etc/default/desktop-wayland
4
+
5
USER=$(id -nu 1000)
6
7
# SteamOS SDDM config
@@ -10,5 +12,9 @@ if [ ! -f ${SDDM_CONF} ]; then
10
12
fi
11
13
14
# Configure autologin
-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
20
sed -i 's/.*User=.*/User='${USER}'/g' ${SDDM_CONF}
0 commit comments