From e2419875d4d863503419b07d055d8cd088173777 Mon Sep 17 00:00:00 2001
From: jean-michel <jean-michel@obarun.org>
Date: Thu, 25 Apr 2019 21:51:16 +0200
Subject: [PATCH] update

---
 plasma/customizeChroot | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/plasma/customizeChroot b/plasma/customizeChroot
index b130db4..25b7f78 100755
--- a/plasma/customizeChroot
+++ b/plasma/customizeChroot
@@ -81,5 +81,42 @@ config_66(){
 }
 custo_once config_66
 
+<<<<<<< HEAD
+=======
+config_user(){
+
+    out_action "Create ${NEWUSER} .scandir file"
+    su "${NEWUSER}" -c "cat > /home/${NEWUSER}/.scandir <<EOF
+#!/usr/bin/execlineb -P
+#emptyenv -p
+s6-setsid -qb --
+umask 022
+
+66-scandir -v3 -cu
+EOF"
+    out_action "Set 750 permissions on .scandir file"
+    su "${NEWUSER}" -c "chmod 750 /home/${NEWUSER}/.scandir"
+    
+    out_action "Create ${NEWUSER} .zprofile file"
+    su "${NEWUSER}" -c "cat > /home/${NEWUSER}/.zprofile <<EOF
+## Execute scandir script
+## Send a down signal, or 'could not sync environment to dbus' with sddm when user logout/login 
+## Send an up signal for services inside tree [gui]
+
+(.scandir &) &
+66-all -t gui down
+sleep 01
+66-all -t gui up
+EOF"
+
+    out_action "Create ${NEWUSER} .xinitrc file"
+    su "${NEWUSER}" -c "cat > /home/${NEWUSER}/.xinitrc <<EOF
+## Uncomment if you use startx command line to launch plasma DE
+exec ck-launch-session startkde
+EOF"
+}
+custo_once config_user
+
+>>>>>>> 7200a72... update with ck-launch-session
 out_valid "Customization terminate"
 
-- 
GitLab