Skip to content

Commit 752e9ca

Browse files
committed
[add] : Added gdm
1 parent d37acc9 commit 752e9ca

File tree

18 files changed

+307
-142
lines changed

18 files changed

+307
-142
lines changed

channels/gnome/airootfs.any/usr/share/calamares/modules/users.conf

Lines changed: 0 additions & 142 deletions
This file was deleted.

channels/gnome/config.any

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ noaur=false
2424
modules=(
2525
"share-extra"
2626
"qtongtk"
27+
"gdm"
2728
)
File renamed without changes.

channels/gnome/airootfs.any/etc/dconf/db/gdm.d/04-sound renamed to modules/gdm/airootfs.any/etc/dconf/db/gdm.d/04-sound

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

channels/gnome/airootfs.any/etc/polkit-1/localauthority.conf.d/org.freedesktop.logind.policy renamed to modules/gdm/airootfs.any/etc/polkit-1/localauthority.conf.d/org.freedesktop.logind.policy

File renamed without changes.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Yamada Hayao
4+
# Twitter: @Hayao0819
5+
6+
#
7+
# (c) 2019-2021 Fascode Network.
8+
#
9+
10+
# Enable gdm to auto login
11+
if [[ "${boot_splash}" = true ]]; then
12+
systemctl enable gdm-plymouth.service
13+
else
14+
systemctl enable gdm.service
15+
fi
16+
17+
18+
# Replace auto login user
19+
sed -i "s/%USERNAME%/${username}/g" "/etc/gdm/custom.conf"
20+
21+
22+
# Set autologin session
23+
mkdir -p "/var/lib/AccountsService/users/"
24+
remove "/var/lib/AccountsService/users/${username}"
25+
cat > "/var/lib/AccountsService/users/${username}" << "EOF"
26+
[User]
27+
Language=
28+
Session=gnome-xorg
29+
XSession=gnome-xorg
30+
Icon=/home/${username}/.face
31+
SystemAccount=false
32+
EOF
33+
34+
35+
# Remove file for japanese input
36+
if [[ ! "${language}" = "ja" ]]; then
37+
sed -i "s/export GTK_IM_MODULE=fcitx/#export GTK_IM_MODULE=fcitx/g" "/etc/environment"
38+
sed -i "s/export QT_IM_MODULE=fcitx/#export QT_IM_MODULE=fcitx/g" "/etc/environment"
39+
sed -i "s/export XMODIFIERS=@im=fcitx/#export XMODIFIERS=@im=fcitx/g" "/etc/environment"
40+
fi
41+
42+
43+
# Remove shortcuts
44+
function remove_userfile() {
45+
remove "/home/${username}/${1#/}"
46+
remove "/etc/skel/${1#/}"
47+
}
48+
remove_userfile "Desktop/calamares.desktop"
49+
#remove_userfile ".config/autostart/genicon.desktop"

channels/gnome/airootfs.any/usr/share/pixmaps/alter-logo.png renamed to modules/gdm/airootfs.any/usr/share/pixmaps/alter-logo.png

File renamed without changes.

0 commit comments

Comments
 (0)