Load xsession from XDG_DATA_DIRS not hardcoded at compile time

Bug #893399 reported by David Edmundson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Light Display Manager
Triaged
Low
Unassigned

Bug Description

It's perfectly reasonable for session desktop files to be in both /usr/local/xsessions and /usr/share/xsessions , and both paths should be searched in order.

It should also use XDG_DATA_DIRS environment variable to determine this path. Though it's up to your code to implement the following from freedesktop spec [1]
"If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used."

[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-0.5.html

Changed in lightdm:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
David Edmundson (david.edmundson) wrote :

Turns out this isn't this simple: Feedback when testing on Chakara, is that sessions are in /etc/X11/sessions.

Loading from XDG_DATA_DIRS would actually break in these cases.

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.