#659 lxsession: ~/.config/autostart doesn't override /etc/xdg/autostart

None
closed-fixed
nobody
lxsession (59)
5
2014-09-12
2014-08-18
yyzyyz
No

lxsession violates the Freedesktop.org autostart specification by ignoring the custom *.desktop settings under ~/.config/autostart in favor of those under /etc/xdg/autostart.

The issue was observed on trusty release of Lubuntu with the latest updates (lxsession version 0.4.9.2+git20140410-amd64). Because of this issue with lxsession, "lxsession-default-apps" command doesn't work as expected.

Steps to reproduce:

  • The Lubuntu distribution autostarts Network-Manager applet by default, through the "/etc/xdg/autostart/nm-applet.desktop" setting
  • To disable autostarting of this application, launch "lxsession-default-apps", switch to "autostart" tab and uncheck the "Network" entry
  • This will create a new file "~/.config/autostart/nm-applet.desktop" with the "NotShowIn" setting updated to include "LXDE"
  • However, upon restarting, lxsession ignores this setting under "~/.config/autostart/nm-applet.desktop" and continue to auto-start nm-applet

Updating system-wide "/etc/xdg/autostart/nm-applet.desktop" to include "LXDE" in "NotShowIn" setting does disable nm-applet from automatically starting up (as expected).

Freedesktop.org autostart specification states that:
"If the same filename is located under multiple Autostart Directories only the file under the most important directory should be used.
Example: If the two files /etc/xdg/autostart/foo.desktop and ~/.config/autostart/foo.desktop exist then only the file ~/.config/autostart/foo.desktop will be used because ~/.config/autostart/ is more important than /etc/xdg/autostart/"

Discussion

  • gilir

    gilir - 2014-09-12

    Thanks for your bug report. It should already be fixed in git tree. It will be included in the next release (0.4.9.4).

     
  • gilir

    gilir - 2014-09-12
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     **lxsession** violates the Freedesktop.org autostart specification by ignoring the custom *.desktop settings under ~/.config/autostart in favor of those under /etc/xdg/autostart.
    
     The issue was observed on trusty release of Lubuntu with the latest updates (lxsession version 0.4.9.2+git20140410-amd64). **Because of this issue with lxsession, "lxsession-default-apps" command doesn't work as expected.**
    
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks