sts diff sts-session @ rev 3

Add a small wallpaper
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 26 22:08:27 2014 +0200 (2014-04-26)
parents
children 57eaff95ad15
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sts-session	Sat Apr 26 22:08:27 2014 +0200
     1.3 @@ -0,0 +1,32 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# Start SliTaz Tiny/Touch Screens desktop session
     1.7 +#
     1.8 +
     1.9 +export STS_DESKTOP_WM="openbox"
    1.10 +export XDG_CACHE_HOME="$HOME/.cache"
    1.11 +export XDG_CONFIG_HOME="$HOME/.config"
    1.12 +export XDG_DATA_HOME="$HOME/.local/share"
    1.13 +
    1.14 +data="/usr/share/slitaz/sts"
    1.15 +obconf="${XDG_CONFIG_HOME}/openbox"
    1.16 +
    1.17 +# Ob sts-rc.xml
    1.18 +if [ ! -f "${XDG_CONFIG_HOME}/openbox/sts-rc.xml" ]; then
    1.19 +	mkdir -p ${obconf}
    1.20 +	cp ${data}/openbox/sts-rc.xml ${obconf}
    1.21 +fi
    1.22 +
    1.23 +# Ob sts-autostart
    1.24 +if [ ! -x "${XDG_CONFIG_HOME}/openbox/sts-autostart" ]; then
    1.25 +	cp ${data}/openbox/sts-autostart ${obconf}
    1.26 +fi
    1.27 +
    1.28 +# LXpanel configs
    1.29 +if [ ! -d "${XDG_CONFIG_HOME}/openbox/lxpanel/sts" ]; then
    1.30 +	cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME}
    1.31 +fi
    1.32 +
    1.33 +# Start Openbox
    1.34 +exec openbox --config-file ${obconf}/sts-rc.xml \
    1.35 +	--startup ${obconf}/sts-autostart