Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ~/.config/slitaz/applications.conf: Missing = failed to login
- # Make users applications.conf in /etc/skel so new added user will get
- # a working X session. Note --> flavors can have a custom config in
- # /etc/slitaz/applications that we must use.
- slitaz_apps_conf() {
- apps_conf=/etc/slitaz/applications.conf
- [ -f $apps_conf ] || inst_pkg slitaz-configs --forced
- if [ "$(id -u)" -eq 0 ]; then
- user_conf="$apps_conf"
- new_user_conf='/etc/skel/.config/slitaz/applications.conf'
- mkdir -p $(dirname $new_user_conf)
- cp -f $apps_conf $new_user_conf
- else
- # If started by: startx and with boot opts screen=text
- user_conf="${XDG_CONFIG_HOME:-$HOME/.config}/slitaz/applications.conf"
- if [ ! -f "$user_conf" ]; then
- mkdir -p $(dirname $user_conf)
- cp $apps_conf $user_conf
- fi
- fi
- [ -f "$HOME/.xinitrc" ] || inst_pkg slitaz-configs-base --forced
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement