slitaz-base-files rev 299

/etc/profile: use applications.conf
(Use variable BROWSER to open links from Sakura terminal)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 25 00:03:56 2016 +0200 (2016-03-25)
parents 522e9624a378
children d06f093ba734
files rootfs/etc/profile
line diff
     1.1 --- a/rootfs/etc/profile	Sun Feb 07 18:27:13 2016 +0000
     1.2 +++ b/rootfs/etc/profile	Fri Mar 25 00:03:56 2016 +0200
     1.3 @@ -52,6 +52,18 @@
     1.4  	xterm*|rxvt*) echo -ne "\033]0;$(hostname) $(cat /etc/slitaz-release) $ip \007";;
     1.5  esac
     1.6  
     1.7 +
     1.8 +# User preferred applications
     1.9 +
    1.10 +[ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME="$HOME/.config"
    1.11 +if [ -s "$XDG_CONFIG_HOME/slitaz/applications.conf" ]; then
    1.12 +	. "$XDG_CONFIG_HOME/slitaz/applications.conf"
    1.13 +elif [ -s '/etc/slitaz/applications.conf' ]; then
    1.14 +	. '/etc/slitaz/applications.conf'
    1.15 +fi
    1.16 +export FILE_MANAGER BROWSER EDITOR TERMINAL WINDOW_MANAGER
    1.17 +
    1.18 +
    1.19  # Bash compatibility
    1.20  
    1.21  dirs() {