wok annotate fluxbox/stuff/fluxbox-session @ rev 12475
fluxbox: better SliTaz integration, use XDG xsessions
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 23 15:17:56 2012 +0200 (2012-04-23) |
parents | |
children | e000ccc93a7b |
rev | line source |
---|---|
pankso@12475 | 1 #!/bin/sh |
pankso@12475 | 2 # |
pankso@12475 | 3 # SliTaz GNU/Linux Fluxbox session script. This script let use Flux |
pankso@12475 | 4 # like Openbox autostart and user dont have to call fluxbox into ther |
pankso@12475 | 5 # startup script. We also set some XDG variables. |
pankso@12475 | 6 # |
pankso@12475 | 7 |
pankso@12475 | 8 fluxdir="$HOME/.fluxbox" |
pankso@12475 | 9 |
pankso@12475 | 10 # Export XDG standard directories. |
pankso@12475 | 11 export XDG_CONFIG_HOME="$HOME/.config" |
pankso@12475 | 12 export XDG_CACHE_HOME="$HOME/.cache" |
pankso@12475 | 13 export XDG_CURRENT_DESKTOP=fluxbox |
pankso@12475 | 14 |
pankso@12475 | 15 # Make sure we have config files. |
pankso@12475 | 16 if [ ! -x "$fluxdir/startup" ]; then |
pankso@12475 | 17 cp /usr/share/slitaz/fluxbox/startup $fluxdir |
pankso@12475 | 18 chmod +x $fluxdir/startup |
pankso@12475 | 19 fi |
pankso@12475 | 20 |
pankso@12475 | 21 # Run the user Fluxbox startup script. |
pankso@12475 | 22 $fluxdir/startup |
pankso@12475 | 23 |
pankso@12475 | 24 # Now we start fluxbox itself. |
pankso@12475 | 25 exec fluxbox |