make an xdg-autostart script. it is very fancy.
[mikachu/openbox.git] / data / autostart.sh
index 962cae0..ab54284 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=""
@@ -29,3 +30,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; then
+  xdg-autostart $DESKTOP_ENV
+fi