[Bug 1330252] Re: ubuntu 14.04 ltsp-server /etc/X11/Xsession.d/40-ltsp-server DESKTOP_SESSION breaks lubuntu-desktop login

John Hupp launchpad at prpcompany.com
Sat Oct 4 18:05:53 UTC 2014


This workaround passed along to me by Vagrant Cascadian works:

Write a script, say /usr/local/bin/lubuntu-custom:

  #!/bin/sh
  exec /usr/bin/lxsession -s Lubuntu -e LXDE

(For others less experienced like me, remember to make the script
executable.)

Also write a corresponding /usr/share/xsessions/Lubuntu-Custom.desktop
file:

  [Desktop Entry]
  Name=Lubuntu-custom
  Comment=LXDE - Lightweight X11 desktop environment
  Exec=/usr/local/bin/lubuntu-custom

(Alternatively, one could instead edit
/usr/share/xsessions/Lubuntu.desktop to use that Exec command.)

And then set the default session in lts.conf:

  LDM_SESSION=Lubuntu-custom

However, my observation concerning this last step is that LDM does not
default to this session selection.  Rather it defaults to the last-
used/selected session.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ltsp in Ubuntu.
https://bugs.launchpad.net/bugs/1330252

Title:
  ubuntu 14.04 ltsp-server /etc/X11/Xsession.d/40-ltsp-server
  DESKTOP_SESSION breaks lubuntu-desktop login

Status in “ltsp” package in Ubuntu:
  Confirmed

Bug description:
  DistroRelease: Ubuntu 14.04
  Package: ltsp-server 5.5.1-1ubuntu2

  
  The following code in `/etc/X11/Xsession.d/40-ltsp-server` causes issues with dash `export ...` expansion as regards LP#139097 :

      DESKTOP_SESSION=$(echo $1 | sed "s/gnome-session --session=//g")

  Given the following `/usr/share/xsessions/Lubuntu.desktop` :

      Exec=/usr/bin/lxsession -s Lubuntu -e LXDE

  Attempting to login to the Lubuntu desktop session results in the
  following error in `~/.xsession-errors` :

      /etc/X11/Xsession: 6: export: -s: bad variable name

  Presumeably due to the `DESKTOP_SESSION` being set above breaking in
  `/etc/X11/Xsession.d/70gconfd_path-on-session` :

      export MANDATORY_PATH=${GCONF_PREFIX}/${DESKTOP_SESSION}.mandatory.path
      export DEFAULTS_PATH=${GCONF_PREFIX}/${DESKTOP_SESSION}.default.path

  Commenting out the culprit DESKTOP_SESSION=... assignment lets me
  login to the Lubuntu desktop again.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1330252/+subscriptions



More information about the foundations-bugs mailing list