sts annotate sts-session @ rev 15

Tiny edits
author Paul Issott <paul@slitaz.org>
date Mon Apr 28 22:30:35 2014 +0100 (2014-04-28)
parents 57eaff95ad15
children 6188e4a86b44
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 STS_DESKTOP_WM="openbox"
pankso@13 7 export STS_DESKTOP_ID="$$"
pankso@1 8 export XDG_CACHE_HOME="$HOME/.cache"
pankso@1 9 export XDG_CONFIG_HOME="$HOME/.config"
pankso@1 10 export XDG_DATA_HOME="$HOME/.local/share"
pankso@1 11
pankso@1 12 data="/usr/share/slitaz/sts"
pankso@13 13 sts="${XDG_CONFIG_HOME}/sts"
pankso@1 14
pankso@1 15 # Ob sts-rc.xml
pankso@13 16 if [ ! -f "${XDG_CONFIG_HOME}/sts/rc.xml" ]; then
pankso@13 17 mkdir -p ${sts}
pankso@13 18 cp ${data}/openbox/rc.xml ${sts}
pankso@1 19 fi
pankso@1 20
pankso@1 21 # Ob sts-autostart
pankso@13 22 if [ ! -x "${XDG_CONFIG_HOME}/sts/autostart" ]; then
pankso@13 23 cp ${data}/openbox/autostart ${sts}
pankso@13 24 chmod +x ${sts}/autostart
pankso@1 25 fi
pankso@1 26
pankso@1 27 # LXpanel configs
pankso@13 28 if [ ! -d "${XDG_CONFIG_HOME}/lxpanel/sts" ]; then
pankso@1 29 cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME}
pankso@1 30 fi
pankso@1 31
pankso@11 32 # Idesk support
pankso@11 33 if [ -x "/usr/bin/idesk" ] && [ ! -d "${HOME}/.idesktop" ]; then
pankso@11 34 mkdir -p ${HOME}/.idesktop
pankso@11 35 fi
pankso@11 36
pankso@1 37 # Start Openbox
pankso@13 38 exec openbox --config-file ${sts}/rc.xml --startup ${sts}/autostart