[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
Hi all,
We (indigo and me) already spoke about /etc/skel on IRC, here's what I remember :
* /etc/skel doesn't contains all needed files. It's an issue when creating a new user.
* /etc/skel is used only at user creation, this implies the following issue :
* if you remove a config file in the home of an existing user, it's doesnt rollback to /etc/skel config, but to default config. I.e. : it's better to put the firefox default config in the system dir than in the /etc/skel because at launch time firefox use the system dir to get default config if no config exists.
* if you install something which use /etc/skel (let's say slitaz-xfce4-config) it will be used to populate new users home but not existing users home.
Solutions can be :
• copy the /home]] files from another user (root or tux); there's an issue with this : it's doesn't use default config if the user modified his config files.
• add some lines in tazpkg to force it to copy all files in /etc/skel to all users home at package installation time - solve the second issue.
• add two options in users management - or one of theses two - to solve partially the first issue :
* get default config : copy a new time /etc/skel in user home and reconfigure x with tazx.
* reset config entirely : remove all config files and put the default one in user home.
In addition, I want to say here that a new variable in receipt can be usefull in slitaz : USER_CONFIG_FILES="...". Storing the path of user config files can give us some new possibilities : remove package & config files, remove config files of deleted packages, reset config files per package, backup all user config files -or per package- and eventually populate /etc/skel with it. I know that adding this is a lot of work, so I just want to submit the idea; Maybe we can think about for a next SliTaz release (I don't know your opinion, adding this for 4.0 seems me difficult).
So, I think that we need to use /etc/skel anyway to get default config of some apps, like openbox or pcmanfm etc.
About adduser :
Maybe we can user a wrapper : a little script instead of the adduser busybox. It can create the user with busybix adduser, then copy/paste the skel and setup the default config with tazx.
Hope this help.
P.S.: indigo, if you remember something else please tell us.
--
GoKhlaYeh <gokhlayeh@xxxxxxxxxx>
---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/