Not able to start a xsession with a space in the name

Bug #875991 reported by Julien Lavergne
48
This bug affects 8 people
Affects Status Importance Assigned to Milestone
LXDE
Unknown
Unknown
lxdm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Using lxdm 0.4.1.
When I try to start a session with a space in the Name section, lxdm fail to load the session and go back to login screen.
Example on Lubuntu, the session Lubuntu is OK, but session Lubuntu Netbook fail.

Revision history for this message
Gregory Margo (gmargo) wrote :

I can confirm this bug on Oneiric, using lxdm version 0.4.1-0ubuntu4.

Alternative example: With xubuntu installed, the file /usr/share/xsessions/xfce.desktop should start the xfce desktop but does not. A simple edit to xfce.desktop to remove the space in the name makes it work under lxdm:

$ diff -u xfce.desktop xfce-working.desktop
--- xfce.desktop 2011-09-23 13:16:11.000000000 -0700
+++ xfce-working.desktop 2011-11-15 08:37:11.617286859 -0800
@@ -1,6 +1,6 @@
 [Desktop Entry]
 Version=1.0
-Name=Xfce Session
+Name=XfceSession
 Name[ast]=Sesión de Xfce
 Name[be]=Сэанс Xfce
 Name[bn]=Xfce সেশন

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lxdm (Ubuntu):
status: New → Confirmed
Revision history for this message
Evan Carroll (evancarroll) wrote :

This is really rather lame and amusing. This bug is still present, found it with the same problem LXDE just crashes after you type in the right username/password, before handing over to XFCE4.

Revision history for this message
Tom Oehser (tom-toms) wrote :

Oh for crying out loud...

Revision history for this message
Tom Oehser (tom-toms) wrote :

I can't believe, gdm doesn't play nice with XVnc4 XDMCP, lightdm doesn't set WINDOWPATH right for sudo, lxdm can't launch Xubuntu at all, slim has security flaws - really? There are 5 or 6 different projects for something this simple, and _none_ of them are usable out of the box?

Revision history for this message
Evan Carroll (evancarroll) wrote :

Problem still present in Precise.

Revision history for this message
Boris Gjenero (boris-gjenero) wrote :

Problem still present in Xenial. Upstream bug still not fixed: https://sourceforge.net/p/lxde/bugs/420/

Revision history for this message
Boris Gjenero (boris-gjenero) wrote :

This seems to be a bug in gconf-common. LXDM sets the DESKTOP_SESSION environment variable to the Name string from the desktop file, and /etc/X11/Xsession.d/70gconfd_path-on-session cannot handle the space due to lack of quoting.

I'm not sure if setting DESKTOP_SESSION to the Name from the .desktop file and having a space in it is wise, but everything seems to work after fixing the quoting.

Revision history for this message
Heimen Stoffels (vistaus) wrote :

I can confirm that this is still present in 16.04 All of a sudden it stopped working and now it seems like I have to reinstall everything...

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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