Call xdg-autostart
authorJulien Valroff <julien@kirya.net>
Thu, 26 May 2011 18:17:41 +0000 (20:17 +0200)
committerJulien Valroff <julien@kirya.net>
Thu, 26 May 2011 18:17:41 +0000 (20:17 +0200)
autostart.sh

index 95746e0..860051d 100644 (file)
@@ -6,6 +6,13 @@ eval `dbus-launch --sh-syntax --exit-with-session`
 eval `gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg`
 export GPG_AGENT_INFO
 
+# Run XDG autostart things.  By default don't run anything desktop-specific
+# See xdg-autostart --help more info
+DESKTOP_ENV="OPENBOX"
+if which /usr/lib/openbox/xdg-autostart >/dev/null; then
+  /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
+fi
+
 gnome-settings-daemon &
 gnome-screensaver &
 nitrogen --restore &