ALT Linux Bugzilla
– Attachment 8143 Details for
Bug 36794
Не работает автологин в lightdm
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
x11-autologin: fix autologin for lightdm
0001-x11-autologin-fix-autologin-for-lightdm.patch (text/plain), 1.37 KB, created by
Michael Shigorin
on 2019-05-28 17:57:33 MSK
(
hide
)
Description:
x11-autologin: fix autologin for lightdm
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2019-05-28 17:57:33 MSK
Size:
1.37 KB
patch
obsolete
>From 3c92f892055b6d4b0178d34c2e85932149f8e7ff Mon Sep 17 00:00:00 2001 >From: Anton Midyukov <antohami@altlinux.org> >Date: Tue, 28 May 2019 19:00:22 +0700 >Subject: [PATCH] x11-autologin: fix autologin for lightdm > >In order for autologin to work, lightdm needs a default session. >The default session is registered in the AccountsService config. > >See-also: https://bugzilla.altlinux.org/show_bug.cgi?id=36794 >--- > .../x11-autologin/rootfs/image-scripts.d/40-x11-autologin | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin b/features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin >index 2197e64..7eeee3f 100755 >--- a/features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin >+++ b/features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin >@@ -55,6 +55,15 @@ fi > LIGHTDM_CONF=/etc/lightdm/lightdm.conf > if [ -f "$LIGHTDM_CONF" ]; then > backup "$LIGHTDM_CONF" >+ default_session="$(ls -1 /usr/share/xsessions/*.desktop | sed -n 's/^.*\/\([^/]\+\)\.desktop$/\1/;1p')" >+ account_file="/var/lib/AccountsService/users/$USER" >+ if [ -n "$default_session" ] && [ ! -f "$account_file" ]; then >+ cat > "$account_file" << EOF >+[User] >+XSession=$default_session >+SystemAccount=false >+EOF >+ fi > sed -i \ > -e "s/^#\(autologin-user=\).*$/\1$USER/" \ > -e "s/^#\(autologin-user-timeout=0\)/\1/" \ >-- >2.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 36794
:
8141
| 8143