sts view sts-session @ rev 11

Add support for idesk
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 27 23:13:45 2014 +0200 (2014-04-27)
parents 41c914508a58
children 185d34744e11
line source
1 #!/bin/sh
2 #
3 # Start SliTaz Tiny/Touch Screens desktop session
4 #
6 export STS_DESKTOP_WM="openbox"
7 export XDG_CACHE_HOME="$HOME/.cache"
8 export XDG_CONFIG_HOME="$HOME/.config"
9 export XDG_DATA_HOME="$HOME/.local/share"
11 data="/usr/share/slitaz/sts"
12 obconf="${XDG_CONFIG_HOME}/openbox"
14 # Ob sts-rc.xml
15 if [ ! -f "${XDG_CONFIG_HOME}/openbox/sts-rc.xml" ]; then
16 mkdir -p ${obconf}
17 cp ${data}/openbox/sts-rc.xml ${obconf}
18 fi
20 # Ob sts-autostart
21 if [ ! -x "${XDG_CONFIG_HOME}/openbox/sts-autostart" ]; then
22 cp ${data}/openbox/sts-autostart ${obconf}
23 fi
25 # LXpanel configs
26 if [ ! -d "${XDG_CONFIG_HOME}/openbox/lxpanel/sts" ]; then
27 cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME}
28 fi
30 # Idesk support
31 if [ -x "/usr/bin/idesk" ] && [ ! -d "${HOME}/.idesktop" ]; then
32 mkdir -p ${HOME}/.idesktop
33 fi
35 # Start Openbox
36 exec openbox --config-file ${obconf}/sts-rc.xml \
37 --startup ${obconf}/sts-autostart