Openbox 3.5 & xdg autostart
Since the 3.5.0 release, Openbox automatically starts applications with .desktop files in /etc/xdg/autostart. This was already the case with previous releases when setting the . $GLOBALAUTOSTART instruction in the autostart script. This instruction is now deprecated.
This has puzzled me as some applications were started twice in my Openbox session: those launched via my ~/.config/openbox/autostart script which are also launched through xdg autostart.
I also like to use notify-osd when in openbox, but it seems the new gnome-fallback session requires notification-daemon. In my Openbox session, I have noticed that notification-daemon was launched whereas my autostart script specifies to use notify-osd. I then discovered that /etc/xdg/autostart/notification-daemon.desktop was the cause of this.
I had to drop a notification-daemon.desktop file in my ~/.config/autostart/ directory with the following contents:
[Desktop Entry] Name=Notification Daemon Comment=Display notifications Exec=/usr/lib/notification-daemon/notification-daemon Terminal=false Type=Application NoDisplay=true OnlyShowIn=LXDE;GNOME AutostartCondition=GNOME3 unless-session gnome X-GNOME-Autostart-enabled=true
This allows me to not start notification-daemon only when using Openbox – ie. it still starts automatically when launching a GNOME session.
You can check what applications are automatically started through xdg with:
/usr/lib/openbox/openbox-xdg-autostart --list OPENBOX
The results are quite amazing, most applications being only configured to start in GNOME or KDE, but nothing seems to be very coordinated amongst maintainers.
I find this quite misleading, and would prefer openbox to stick with the previous default behaviour. Who said “diehard”?!