]> icculus.org git repositories - mikachu/openbox.git/blob - data/autostart.sh
changes to the manual pages.
[mikachu/openbox.git] / data / autostart.sh
1 #!/bin/sh
2
3 # Set a background color
4 BG=""
5 if which hsetroot >/dev/null; then
6     BG=hsetroot
7 else
8     if which esetroot >/dev/null; then
9         BG=esetroot
10     else
11         if which xsetroot >/dev/null; then
12             BG=xsetroot
13         fi
14     fi
15 fi
16 test -z $BG || $BG -solid "#303030"
17
18 # D-bus
19 if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
20        eval `dbus-launch --sh-syntax --exit-with-session`
21 fi
22
23 # Make GTK apps look and behave how they were set up in the gnome config tools
24 if which gnome-settings-daemon >/dev/null; then
25   gnome-settings-daemon &
26 fi
27
28 # Preload stuff for KDE apps
29 if which start_kdeinit >/dev/null; then
30   LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
31 fi