From e33458509a9321fb6fc052fea07af9f49eb7ecb0 Mon Sep 17 00:00:00 2001 From: jean-michel <jean-michel@obarun.org> Date: Sat, 6 Apr 2019 03:21:46 +0200 Subject: [PATCH] user environment configuration --- plasma/customizeChroot | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/plasma/customizeChroot b/plasma/customizeChroot index 479f712..57747bd 100755 --- a/plasma/customizeChroot +++ b/plasma/customizeChroot @@ -81,5 +81,31 @@ config_66(){ } custo_once config_66 +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 "Create ${NEWUSER} .xsession file" + su "${NEWUSER}" -c "cat > /home/${NEWUSER}/.xsession <<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" +} +custo_once config_user + out_valid "Customization terminate" -- GitLab