]> Dogcows Code - chaz/openbox/blobdiff - data/autostart.sh
Merge branch 'backport' into work
[chaz/openbox] / data / autostart.sh
index 962cae071a739a571c827dd6629ad47131107d19..5306326258b9b087109afbfb8c2037a88eb0905e 100644 (file)
@@ -1,4 +1,5 @@
-#!/bin/sh
+# This shell script is run before Openbox launches.
+# Environment variables set here are passed to the Openbox session.
 
 # Set a background color
 BG=""
@@ -21,7 +22,9 @@ if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
 fi
 
 # Make GTK apps look and behave how they were set up in the gnome config tools
-if which gnome-settings-daemon >/dev/null; then
+if which /usr/libexec/gnome-settings-daemon >/dev/null; then
+  /usr/libexec/gnome-settings-daemon &
+elif which gnome-settings-daemon >/dev/null; then
   gnome-settings-daemon &
 fi
 
@@ -29,3 +32,10 @@ fi
 if which start_kdeinit >/dev/null; then
   LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
 fi
+
+# Run XDG autostart things.  By default don't run anything desktop-specific
+# See xdg-autostart --help more info
+DESKTOP_ENV=""
+if which xdg-autostart >/dev/null; then
+  xdg-autostart $DESKTOP_ENV
+fi
This page took 0.02009 seconds and 4 git commands to generate.