Skip to content
Snippets Groups Projects
Commit e3345850 authored by jean-michel's avatar jean-michel
Browse files

user environment configuration

parent 536fe8a1
No related branches found
No related tags found
No related merge requests found
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment