Skip to content

Commit 7eab84e

Browse files
committed
Merge branch 'sddm-auto-login' into dev
2 parents 8ecd008 + 85a7909 commit 7eab84e

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Autologin]
2+
User=%USERNAME%
3+
Session=plasma.desktop

channels/plasma/airootfs.any/root/customize_airootfs_plasma.sh

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,23 @@ if [[ "${arch}" = "x86_64" ]]; then
8989
fi
9090

9191

92-
# Disable services.
93-
# To disable start up of sddm.
94-
# If it is enable, Users have to enter password.
95-
#systemctl disable sddm
96-
#if [[ ${boot_splash} = true ]]; then
97-
# systemctl disable sddm-plymouth.service
98-
#fi
92+
# Bluetooth
93+
rfkill unblock all
94+
systemctl enable bluetooth
95+
96+
# Update system datebase
97+
dconf update
98+
99+
# Enable SDDM to auto login in live session
100+
if [[ "${boot_splash}" = true ]]; then
101+
systemctl enable sddm-plymouth.service
102+
systemctl disable sddm.service
103+
else
104+
systemctl enable sddm.service
105+
fi
106+
107+
echo -e "\nremove /etc/sddm.conf.d/autologin.conf" >> "/usr/share/calamares/final-process"
108+
sed -i "s|%USERNAME%|${username}|g" "/etc/sddm.conf.d/autologin.conf"
99109

100110

101111
# ntp

0 commit comments

Comments
 (0)