mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-30 07:20:44 +00:00
chore: Move autologin services to deck folders
This commit is contained in:
parent
ebb055a5a2
commit
a1d63b6996
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source /etc/default/desktop-wayland
|
||||
|
||||
USER=$(id -nu 1000)
|
||||
|
||||
# GDM config
|
||||
GDM_CONF='/etc/gdm/custom.conf'
|
||||
|
||||
# Configure autologin
|
||||
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-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