mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-25 06:35:25 +00:00
fix: Correct the name of GNOME's Wayland session for autologin and session selection
This commit is contained in:
parent
ad34875c32
commit
b6df87a006
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user