Skip to content

Openbox 3.5 & xdg autostart

by Julien on October 19th, 2011

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
AutostartCondition=GNOME3 unless-session gnome

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”?!

From → Weblog

    • Yes, but the issue I describe is different as I do not use a GNOME/Openbox session. The behaviour I describe is somewhat normal, but it seems it is not harmonised between packages.

  1. Jebril permalink

    The new Openbox is so buggy, it’s actually really disappointing, I like the new Alt+Tab but that’s really the only noticeable difference along with a bunch of bugs.

    Thanks for this though.

Comments are closed.