lxsession ignores ~/.config/autostart directory

Bug #1336944 reported by LXLE Linux
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lxsession (Ubuntu)
Fix Released
Undecided
Julien Lavergne
Trusty
Fix Released
Undecided
Unassigned

Bug Description

SRU statement :
[Impact]
Currently, the files under ~/.config/autostart are ignored if other files are present in /etc/xdg. The previous fix was incomplete, currently the home directory is read, but with the lowest priority. If a file in /etc/xdg is found, the one in ~/.config/autostart is ignored. Home directory should be the first directory to be read, and system directory should be ignored if something is found in ~/.config/autostart. The patch (from upstream) fix this problem.

[Test Case]
To test :
- Copy a file from /etc/xdg/autostart in ~/.config/autostart
- Change the file to change the behavior
- Reboot and see if the change apply

[Regression Potential]
The fix is applied since quite some time upstream and in 14.10. However, testing the correct behavior of the different configurations (1 file only in ~/.config/autostart, 1 file only in /etc/xdg/autostart, both file on ~/.config/autostart and /etc/xdg/autostart ...) may be useful.

Original report :
~/.config/autostart is now completely ignored, everything located in /etc/xdg/autostart is loaded regardless of what is selected by the lxsession startup manger aka 'default applications of lxsession' the only solution is to add 'NotShowIn=LXDE;' to the text files located in /etc/xdg/autostart if these files are placed in ~/.config/autostart they are no adhered to by lxsession

Revision history for this message
Phill Whiteside (phillw) wrote :

There is a proposed fix in the lubuntu-staging PPA can this please be tested and reported upon.

Changed in lxsession (Ubuntu):
status: New → Confirmed
status: Confirmed → Incomplete
Revision history for this message
LXLE Linux (lxle) wrote :

That fixed it. Good work. Push it through.

LXLE Linux (lxle)
Changed in lxsession (Ubuntu):
status: Incomplete → Fix Released
status: Fix Released → Fix Committed
Phill Whiteside (phillw)
tags: added: verification-needed
removed: autostart lxsession
Phill Whiteside (phillw)
tags: added: verification-done
removed: verification-needed
Revision history for this message
JackT (anonymous352) wrote :

Fix tested and verified.

Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks for the tests, I'll prepare a proper SRU for this.

Changed in lxsession (Ubuntu):
status: Fix Committed → In Progress
assignee: nobody → Julien Lavergne (gilir)
tags: removed: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxsession - 0.4.9.2+git20140410-0ubuntu3

---------------
lxsession (0.4.9.2+git20140410-0ubuntu3) utopic; urgency=medium

  * debian/patches:
   - 95_reorder_autostart.patch: From upstream, read home directory before
     system directories for autostart (LP: #1336944).
 -- Julien Lavergne <email address hidden> Thu, 11 Sep 2014 12:48:47 +0200

Changed in lxsession (Ubuntu):
status: In Progress → Fix Released
Julien Lavergne (gilir)
description: updated
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello LXLE, or anyone else affected,

Accepted lxsession into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/lxsession/0.4.9.2+git20140410-0ubuntu1.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in lxsession (Ubuntu Trusty):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote :

In a VirtualBox, used light-locker.desktop to test. With 1.1, I was able to confirm the bug. With 1.2, used "Exec=lxterminal" in ~/.config/autostart version. Results:
 * systemwide configuration only: lxterminal does not load, light-locker does load
 * modified version in user directory only: lxterminal does load, light-locker does not load
 * both systemwide and user files: lxterminal does load, light-locker does not load

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxsession - 0.4.9.2+git20140410-0ubuntu1.2

---------------
lxsession (0.4.9.2+git20140410-0ubuntu1.2) trusty-proposed; urgency=medium

  * debian/patches:
   - 95_reorder_autostart.patch: From upstream, read home directory before
     system directories for autostart (LP: #1336944).
 -- Julien Lavergne <email address hidden> Tue, 30 Dec 2014 08:00:22 +0100

Changed in lxsession (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of the Stable Release Update for lxsession has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.