[Regression] [Trusty] Unity can't be started from kdm

Bug #1293629 reported by Albert Astals Cid
60
This bug affects 11 people
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, the issue is due to the DESKTOP_SESSION -> XDG_CURRENT_DESKTOP change. kdm exports the first variable but not the second one, it makes the upstart job bail out on "Unknown parameter: XDG_CURRENT_DESKTOP"

We either need to revert to use DESKTOP_SESSION back or to fix kdm (and potential other dms) to set XDG_CURRENT_DESKTOP

Dimitri, Dmitry, Tim, you are the ones that worked on those changes, is any of you wanting to look at changing kdm or should we just revert that update?

Changed in gnome-session (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

I would prefer to fix KDM or wait for Tim to propose an alternative to his changes.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Right, fixing KDM would be nice, the issue is to know if anyone has spare cycles to work on that...

Revision history for this message
Albert Astals Cid (aacid) wrote :

Is there anything in a spec somewhere that says kdm is at wrong here and that it should indeed define XDG_CURRENT_DESKTOP ?

Revision history for this message
Sebastien Bacher (seb128) wrote :

No, XDG_CURRENT_DESKTOP is an Ubuntu specific thing at the moment, we have been talking about it standardized on freedesktop though (it should be discussed at the next fdo summit)

Revision history for this message
Tim Lunn (darkxst) wrote :

XDG_CURRENT_DESKTOP needs to be set by the DM, otherwise GNOME and probably Unity sessions will be buggy.

Revision history for this message
Albert Astals Cid (aacid) wrote :

It works fine here without the DM setting it. Note that the variable is set, probably by something else.

Revision history for this message
Sebastien Bacher (seb128) wrote :

gnome-session is setting it so the session itself is fine, the issue is that the gnome-session upstart job is not benefiting from that

Revision history for this message
Tim Lunn (darkxst) wrote :

@Albert, any job run as an upstart user session, will not have access to that variable, at the very least that affects the gnome-session job and also gnome-settings-daemon

Revision history for this message
Albert Astals Cid (aacid) wrote :

Ok, feel free to mark this as invalid if you don't care that Unity fails to start from other DM than lightdm.

Revision history for this message
Becache (msn-adam) wrote :

Is there any updates or how can I start gnome session from kdm ?

Revision history for this message
Rik Mills (rikmills) wrote :

Still present in utopic.

Revision history for this message
Rik Shaw (rik-shaw) wrote :

I haven't found out how to set XDG_CURRENT_DESKTOP from mdm (Linux Mint's fork of older gdm), so then when attempting to login to Gnome-Shell I am greeted with a black screen. However, doing this is a workaround (but still leaves XDG_CURRENT_DESTKOP unset):

in /usr/share/upstart/sessions/gnome-session.conf

change:

instance $XDG_CURRENT_DESKTOP

to:

instance GNOME

Revision history for this message
Albert Astals Cid (aacid) wrote :

This doesn't seem like it's getting any traction after 2 years and kdm is not even shipped anymore so as reporter i'm closing this bug to have a cleaner "reported bugs" view in launchpad.

Changed in gnome-session (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

It affects sddm too.

Revision history for this message
Tim Lunn (darkxst) wrote :

sddm should grow support to set XDG_CURRENT_DESKTOP

XDG_CURRENT_DESKTOP was standardised a while back.

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.