wok-current diff compiz/stuff/compiz-session @ rev 15222

cups-pam: fix pre_remove
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 22 09:48:59 2013 +0200 (2013-09-22)
parents
children 41794be0da15
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/compiz/stuff/compiz-session	Sun Sep 22 09:48:59 2013 +0200
     1.3 @@ -0,0 +1,34 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# Start Compiz 3D Desktop on SliTaz. We use some LXDE componment
     1.7 +# and check compiz config files exist.
     1.8 +#
     1.9 +
    1.10 +export XDG_CONFIG_HOME="$HOME/.config"
    1.11 +export XDG_CACHE_HOME="$HOME/.cache"
    1.12 +export XDG_CURRENT_DESKTOP=LXDE
    1.13 +export DESKTOP_SESSION=compiz
    1.14 +
    1.15 +# Start DBUS session.
    1.16 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
    1.17 +	dbus-launch --sh-syntax --exit-with-session &
    1.18 +fi
    1.19 +
    1.20 +# Compiz configuration files from slitaz-configs.
    1.21 +if [ ! -f "$XDG_CONFIG_HOME/compiz-1/compizconfig/config" ]; then
    1.22 +	mkdir -p $XDG_CONFIG_HOME/compiz-1/compizconfig
    1.23 +	cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz-1/compizconfig
    1.24 +fi
    1.25 +
    1.26 +# PCmanFM config file. NOTE: will change with new PCmanFM
    1.27 +if [ ! -f "$XDG_CONFIG_HOME/pcmanfm/main" ]; then
    1.28 +	mkdir -p $XDG_CONFIG_HOME/pcmanfm
    1.29 +	cp /usr/share/slitaz/lxde/pcmanfm.main \
    1.30 +		$XDG_CONFIG_HOME/pcmanfm/main
    1.31 +fi
    1.32 +
    1.33 +# Start some LXDE componment.
    1.34 +lxpanel -p slitaz &
    1.35 +pcmanfm -d &
    1.36 +emerald &
    1.37 +exec compiz ccp --indirect-rendering