Skip to content

Commit e83e24a

Browse files
committed
[fix] : FIxed dm modules session
1 parent 752e9ca commit e83e24a

File tree

13 files changed

+34
-58
lines changed

13 files changed

+34
-58
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Seat:*]
2+
autologin-session=cinnamon2d

channels/cinnamon/airootfs.any/etc/lightdm/lightdm.conf.d/02-autologin.conf

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

channels/gnome/airootfs.any/root/customize_airootfs_gnome.sh

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,6 @@
77
# (c) 2019-2021 Fascode Network.
88
#
99

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-
2210
# Set autologin session
2311
mkdir -p "/var/lib/AccountsService/users/"
2412
remove "/var/lib/AccountsService/users/${username}"
@@ -31,15 +19,6 @@ Icon=/home/${username}/.face
3119
SystemAccount=false
3220
EOF
3321

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-
4322
# Remove shortcuts
4423
function remove_userfile() {
4524
remove "/home/${username}/${1#/}"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Seat:*]
2+
autologin-session=i3
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Seat:*]
2+
autologin-session=lxde

channels/lxde/airootfs.any/etc/lightdm/lightdm.conf.d/02-autologin.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Seat:*]
2+
autologin-session=xfce
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Seat:*]
2+
autologin-session=xfce

channels/xfce-pro/airootfs.any/etc/lightdm/02-autologin.conf

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

modules/gdm/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## 注意
2+
このモジュールを使用する際には以下のコードを`customize_airootfs.sh`に記述してください。
3+
4+
```bash
5+
# Set autologin session
6+
mkdir -p "/var/lib/AccountsService/users/"
7+
remove "/var/lib/AccountsService/users/${username}"
8+
cat > "/var/lib/AccountsService/users/${username}" << "EOF"
9+
[User]
10+
Language=
11+
Session=<セッション名>
12+
XSession=<セッション名>
13+
Icon=/home/${username}/.face
14+
SystemAccount=false
15+
EOF
16+
```

0 commit comments

Comments
 (0)