Skip to content

Commit

Permalink
fix: Correct the name of GNOME's Wayland session for autologin and se…
Browse files Browse the repository at this point in the history
…ssion selection
  • Loading branch information
EyeCantCU committed Aug 11, 2023
1 parent ad34875 commit b6df87a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions system_files/deck/shared/usr/bin/steamos-session-select
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion system_files/deck/silverblue/usr/bin/gnome-autologin
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion system_files/desktop/silverblue/usr/bin/gnome-autologin
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b6df87a

Please sign in to comment.