]> Dogcows Code - chaz/openbox/blob - data/autostart.sh
mismerged the 3.4 xsd stuff into trunk.
[chaz/openbox] / data / autostart.sh
1 # This shell script is run before Openbox launches.
2 # Environment variables set here are passed to the Openbox session.
3
4 # Set a background color
5 BG=""
6 if which hsetroot >/dev/null; then
7 BG=hsetroot
8 else
9 if which esetroot >/dev/null; then
10 BG=esetroot
11 else
12 if which xsetroot >/dev/null; then
13 BG=xsetroot
14 fi
15 fi
16 fi
17 test -z $BG || $BG -solid "#303030"
18
19 # D-bus
20 if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
21 eval `dbus-launch --sh-syntax --exit-with-session`
22 fi
23
24 # Make GTK apps look and behave how they were set up in the gnome config tools
25 if which gnome-settings-daemon >/dev/null; then
26 gnome-settings-daemon &
27 fi
28
29 # Preload stuff for KDE apps
30 if which start_kdeinit >/dev/null; then
31 LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
32 fi
33
34 # Support for SCIM
35 if which scim >/dev/null; then
36 export XMODIFIERS=@im=SCIM
37 export GTK_IM_MODULE=scim
38 export QT_IM_MODULE=scim
39 scim -d &
40 fi
This page took 0.033981 seconds and 4 git commands to generate.