fix: Correct the name of GNOME's Wayland session for autologin and session selection

This commit is contained in:
RJ Trujillo 2023-08-11 16:10:54 -06:00
parent ad34875c32
commit b6df87a006
4 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ case "$session" in
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then
session_launcher="plasma.desktop"
elif [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
session_launcher="gnome-session.desktop"
session_launcher="gnome-wayland.desktop"
fi
;;
plasma-x11-persistent)
@ -91,7 +91,7 @@ case "$session" in
fi
elif [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
if ${DESKTOP_WAYLAND}; then
session_launcher="gnome-session-oneshot.desktop"
session_launcher="gnome-wayland-oneshot.desktop"
else
session_launcher="gnome-xorg-oneshot.desktop"
fi

View File

@ -13,7 +13,7 @@ fi
# Configure autologin
if ${DESKTOP_WAYLAND}; then
sed -i 's/.*Session=.*/Session=gnome-session.desktop/g' ${SDDM_CONF}
sed -i 's/.*Session=.*/Session=gnome-wayland.desktop/g' ${SDDM_CONF}
else
sed -i 's/.*Session=.*/Session=gnome-xorg.desktop/g' ${SDDM_CONF}
fi

View File

@ -11,7 +11,7 @@ GDM_CONF='/etc/gdm/custom.conf'
sed -i 's/.*AutomaticLoginEnable=.*/AutomaticLoginEnable=true/g' ${GDM_CONF}
sed -i 's/.*AutomaticLogin=.*/AutomaticLogin='${USER}'/g' ${GDM_CONF}
if ${DESKTOP_WAYLAND}; then
sed -i 's/.*DefaultSession=.*/DefaultSession=gnome-session/g' ${GDM_CONF}
sed -i 's/.*DefaultSession=.*/DefaultSession=gnome-wayland/g' ${GDM_CONF}
else
sed -i 's/.*DefaultSession=.*/DefaultSession=gnome-xorg/g' ${GDM_CONF}
fi