From 2c36671775d4d9eb4cad8ea6ed8c893571977059 Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Thu, 10 Aug 2023 21:34:11 -0600 Subject: [PATCH] fix(deck): Add Wayland support to GNOME autologin (#133) Missed this one --- system_files/deck/silverblue/usr/bin/gnome-autologin | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system_files/deck/silverblue/usr/bin/gnome-autologin b/system_files/deck/silverblue/usr/bin/gnome-autologin index 208a072b..2ed4b3ea 100755 --- a/system_files/deck/silverblue/usr/bin/gnome-autologin +++ b/system_files/deck/silverblue/usr/bin/gnome-autologin @@ -1,5 +1,7 @@ #!/usr/bin/env bash +source /etc/default/desktop-wayland + USER=$(id -nu 1000) # SteamOS SDDM config @@ -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}