From b443f9ca4a45f2cd5bcc4bc9bc907fe61a7320f9 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Thu, 25 Oct 2018 12:45:19 +0700 Subject: [PATCH] new target use/x11/lxdm lxdm - lightweight display manager for LXDE --- .../rootfs/image-scripts.d/40-x11-autologin | 14 ++++++++++++++ features.in/x11/config.mk | 3 +++ 2 files changed, 17 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 0d9fb1ce..2197e64b 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 @@ -79,6 +79,20 @@ if [ -f "$GDM_CONF" ]; then restore_later "/etc/group" fi + +## lxdm autologin +LXDM_CONF=/etc/lxdm/lxdm.conf +if [ -f "$LXDM_CONF" ]; then + backup "$LXDM_CONF" + sed -i -e "s/\# autologin=dgod/autologin=$USER/" \ + "$LXDM_CONF" + backup "/etc/group" + add_nopasswdlogin_group lxdm ||: + + restore_later "$LXDM_CONF" + restore_later "/etc/group" +fi + autologin_kdm() { backup "$1" sed -i \ diff --git a/features.in/x11/config.mk b/features.in/x11/config.mk index 448610f2..00401865 100644 --- a/features.in/x11/config.mk +++ b/features.in/x11/config.mk @@ -93,6 +93,9 @@ use/x11/gdm2.20: use/x11-autostart use/x11/sddm: use/x11-autostart @$(call add,THE_PACKAGES,sddm) +use/x11/lxdm: use/x11-autostart + @$(call add,THE_PACKAGES,lxde-lxdm) + use/x11/icewm: use/x11 @$(call add,THE_LISTS,$(call tags,icewm desktop))