wok-next view compiz/stuff/compiz-session @ rev 15441
Up: eio (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:57:45 2013 +0100 (2013-11-05) |
parents | |
children | 41794be0da15 |
line source
1 #!/bin/sh
2 #
3 # Start Compiz 3D Desktop on SliTaz. We use some LXDE componment
4 # and check compiz config files exist.
5 #
7 export XDG_CONFIG_HOME="$HOME/.config"
8 export XDG_CACHE_HOME="$HOME/.cache"
9 export XDG_CURRENT_DESKTOP=LXDE
10 export DESKTOP_SESSION=compiz
12 # Start DBUS session.
13 if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
14 dbus-launch --sh-syntax --exit-with-session &
15 fi
17 # Compiz configuration files from slitaz-configs.
18 if [ ! -f "$XDG_CONFIG_HOME/compiz-1/compizconfig/config" ]; then
19 mkdir -p $XDG_CONFIG_HOME/compiz-1/compizconfig
20 cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz-1/compizconfig
21 fi
23 # PCmanFM config file. NOTE: will change with new PCmanFM
24 if [ ! -f "$XDG_CONFIG_HOME/pcmanfm/main" ]; then
25 mkdir -p $XDG_CONFIG_HOME/pcmanfm
26 cp /usr/share/slitaz/lxde/pcmanfm.main \
27 $XDG_CONFIG_HOME/pcmanfm/main
28 fi
30 # Start some LXDE componment.
31 lxpanel -p slitaz &
32 pcmanfm -d &
33 emerald &
34 exec compiz ccp --indirect-rendering