slitaz-configs view sts/sts-session @ rev 205

Add SliTaz Tiny/Touch Screen configs files and utils
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 11 00:51:33 2014 +0200 (2014-04-11)
parents
children 4913405db8f3
line source
1 #!/bin/sh
2 #
3 # Start SliTaz Tiny/Touch Screens desktop session
4 #
6 export XDG_CONFIG_HOME="$HOME/.config"
7 export STS_DESKTOP_WM="openbox"
9 data="/usr/share/slitaz/sts"
10 obconf="${XDG_CONFIG_HOME}/openbox"
12 # sts-rc.xml
13 if [ ! -f "${XDG_CONFIG_HOME}/openbox/sts-rc.xml" ]; then
14 mkdir -p ${obconf}
15 cp ${data}/openbox/sts-rc.xml ${obconf}
16 fi
18 # sts-autostart
19 if [ ! -x "${XDG_CONFIG_HOME}/openbox/sts-autostart" ]; then
20 cp ${data}/openbox/sts-autostart ${obconf}
21 fi
23 # Start Openbox
24 exec openbox \
25 --config-file ${XDG_CONFIG_HOME}/openbox/sts-rc.xml \
26 --startup ${XDG_CONFIG_HOME}/openbox/sts-autostart