sts annotate sts-session @ rev 18
merge
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 15 16:54:14 2014 +0200 (2014-05-15) |
parents | 185d34744e11 |
children |
rev | line source |
---|---|
pankso@1 | 1 #!/bin/sh |
pankso@1 | 2 # |
pankso@1 | 3 # Start SliTaz Tiny/Touch Screens desktop session |
pankso@1 | 4 # |
pankso@1 | 5 |
pankso@1 | 6 export XDG_CACHE_HOME="$HOME/.cache" |
pankso@1 | 7 export XDG_CONFIG_HOME="$HOME/.config" |
pankso@1 | 8 export XDG_DATA_HOME="$HOME/.local/share" |
pankso@1 | 9 |
pankso@17 | 10 export STS_DESKTOP_ID="$$" |
pankso@17 | 11 export STS_DESKTOP_WM="openbox" |
pankso@17 | 12 export STS_CONFIG_HOME="$XDG_CONFIG_HOME/sts" |
pankso@17 | 13 |
pankso@1 | 14 data="/usr/share/slitaz/sts" |
pankso@13 | 15 sts="${XDG_CONFIG_HOME}/sts" |
pankso@1 | 16 |
pankso@1 | 17 # Ob sts-rc.xml |
pankso@13 | 18 if [ ! -f "${XDG_CONFIG_HOME}/sts/rc.xml" ]; then |
pankso@13 | 19 mkdir -p ${sts} |
pankso@13 | 20 cp ${data}/openbox/rc.xml ${sts} |
pankso@1 | 21 fi |
pankso@1 | 22 |
pankso@1 | 23 # Ob sts-autostart |
pankso@13 | 24 if [ ! -x "${XDG_CONFIG_HOME}/sts/autostart" ]; then |
pankso@13 | 25 cp ${data}/openbox/autostart ${sts} |
pankso@13 | 26 chmod +x ${sts}/autostart |
pankso@1 | 27 fi |
pankso@1 | 28 |
pankso@17 | 29 # Tint2 panel |
pankso@17 | 30 if [ ! -f "${XDG_CONFIG_HOME}/sts/tint2rc" ]; then |
pankso@17 | 31 cp ${data}/tint2/tint2rc ${XDG_CONFIG_HOME}/sts |
pankso@17 | 32 fi |
pankso@17 | 33 |
pankso@17 | 34 # LXpanel configs support |
pankso@17 | 35 if [ -x "/usr/bin/lxpanel" ] && [ ! -d "${XDG_CONFIG_HOME}/lxpanel/sts" ]; then |
pankso@1 | 36 cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME} |
pankso@1 | 37 fi |
pankso@1 | 38 |
pankso@11 | 39 # Idesk support |
pankso@11 | 40 if [ -x "/usr/bin/idesk" ] && [ ! -d "${HOME}/.idesktop" ]; then |
pankso@11 | 41 mkdir -p ${HOME}/.idesktop |
pankso@11 | 42 fi |
pankso@11 | 43 |
pankso@1 | 44 # Start Openbox |
pankso@13 | 45 exec openbox --config-file ${sts}/rc.xml --startup ${sts}/autostart |