sts view 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
line source
1 #!/bin/sh
2 #
3 # Start SliTaz Tiny/Touch Screens desktop session
4 #
6 export XDG_CACHE_HOME="$HOME/.cache"
7 export XDG_CONFIG_HOME="$HOME/.config"
8 export XDG_DATA_HOME="$HOME/.local/share"
10 export STS_DESKTOP_ID="$$"
11 export STS_DESKTOP_WM="openbox"
12 export STS_CONFIG_HOME="$XDG_CONFIG_HOME/sts"
14 data="/usr/share/slitaz/sts"
15 sts="${XDG_CONFIG_HOME}/sts"
17 # Ob sts-rc.xml
18 if [ ! -f "${XDG_CONFIG_HOME}/sts/rc.xml" ]; then
19 mkdir -p ${sts}
20 cp ${data}/openbox/rc.xml ${sts}
21 fi
23 # Ob sts-autostart
24 if [ ! -x "${XDG_CONFIG_HOME}/sts/autostart" ]; then
25 cp ${data}/openbox/autostart ${sts}
26 chmod +x ${sts}/autostart
27 fi
29 # Tint2 panel
30 if [ ! -f "${XDG_CONFIG_HOME}/sts/tint2rc" ]; then
31 cp ${data}/tint2/tint2rc ${XDG_CONFIG_HOME}/sts
32 fi
34 # LXpanel configs support
35 if [ -x "/usr/bin/lxpanel" ] && [ ! -d "${XDG_CONFIG_HOME}/lxpanel/sts" ]; then
36 cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME}
37 fi
39 # Idesk support
40 if [ -x "/usr/bin/idesk" ] && [ ! -d "${HOME}/.idesktop" ]; then
41 mkdir -p ${HOME}/.idesktop
42 fi
44 # Start Openbox
45 exec openbox --config-file ${sts}/rc.xml --startup ${sts}/autostart