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