]> Dogcows Code - chaz/openbox/blob - data/autostart/openbox-autostart.in
Fix 3.4 compatibility for SendToDesktop
[chaz/openbox] / data / autostart / openbox-autostart.in
1 #!/bin/sh
2
3 # Set a background color
4 BG=""
5 if which hsetroot >/dev/null; then
6 BG=hsetroot
7 elif which esetroot >/dev/null; then
8 BG=esetroot
9 elif which xsetroot >/dev/null; then
10 BG=xsetroot
11 fi
12 test -z $BG || $BG -solid "#303030"
13
14 GLOBALAUTOSTART="@configdir@/autostart"
15 AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart"
16
17 # Run the global openbox autostart script
18 if test -f $GLOBALAUTOSTART; then
19 sh $GLOBALAUTOSTART
20 elif test -f $GLOBALAUTOSTART.sh; then
21 sh $GLOBALAUTOSTART.sh
22 fi
23
24 # Run the user openbox autostart script
25 if test -f $AUTOSTART; then
26 sh $AUTOSTART
27 elif test -f $AUTOSTART.sh; then
28 sh $AUTOSTART.sh
29 fi
30
31 # Run the XDG autostart stuff. These are found in /etc/xdg/autostart and
32 # in $HOME/.config/autostart. This requires PyXDG to be installed.
33 # See openbox-xdg-autostart --help for more details.
34 @libexecdir@/openbox-xdg-autostart OPENBOX
This page took 0.033946 seconds and 4 git commands to generate.