https://www.pearltrees.com/s243a/add-us ... id24252575
https://pastebin.com/8Q3hn8qR
The build script will only create the user profiles if the variable $users is defined. I added a file called "defaults" to put such settings in so that one doesn't have to keep clicking through the dialog windows every-time that someone runs the script.
My configuration file has the following:
Code: Select all
users='tux,root,spot:jwm
In this script the window managers are configured with the code:
Code: Select all
if [ $WINDOW_MANAGER = "jwm" ]; then
usr_home=`su -c "echo $HOME" $USER`
( export HOME=$usr_home; fixmenus ) #TODO update fixmenus so that it only updates files for a single user.
else
su -c "sh tazbox mkmenu" $USER #
fi