On Quantal, tried the recommended work-around from: 
https://wiki.ubuntu.com/CustomXSession
that is:

Create a new file /usr/share/xsessions/custom.desktop with:

[Desktop Entry]
Name=Xsession
Exec=/etc/X11/Xsession

This did allow me to select a different login session, which did, in fact run 
my ~/.xsession
but, there is still something a bit off. It appears the lightdm is invoking:
     /bin/sh /usr/sbin/lightdm-session /etc/X11/Xsession

Which means arg1 in the Xsession script is: /etc/X11/Xsession
This results in some parts of Xsession.d/ being run twice (probably not what we 
want).

Also, it seemed like the lightdm / pam integration started: 
gnome-keyring-daemon --daemonize --login
but nothing did the: eval `gnome-keyring-daemon --start`
 - I can add this to my ~/.xsession

Also, Xsession started an ssh-agent (even though we have gnome-keyring-
daemon which does similar things).

If you don't put the gnome-keyring-daemon --start in your .xsession, the 
gnome-keyring-daemon started earlier by pam will exit, leaving your environment 
a bit messed up.
ref: https://live.gnome.org/GnomeKeyring/Pam

There are a number of  bugs out there on the pam/gnome-keyring-daemon issues 
with non gnome desktops:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653011
https://bugs.launchpad.net/fedora/+source/gnome-keyring/+bug/932177

Soooo, I ended up hacking in several more work-arounds to actually make things 
work.
The work-around are a bit ugly and more involved than I want to capture here 
and certainly well beyond what an average non-admin user could manage.

It seems a bit of design needed to integrate  lightdm / Xsession. Perhaps this 
bug should be split to indicate:
  - custom.desktop file is missing
  - bad arg1 on Xsession
  - gnome-keyring-daemon not initialized (refer to other bugs)

I may try and capture some of my work around at
https://sites.google.com/site/i3windowmanager/ (let me know if you are
interested).

** Bug watch added: Debian Bug tracker #653011
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653011

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1066119

Title:
  Xsession not loading

Status in “lightdm” package in Ubuntu:
  Confirmed

Bug description:
  Lightdm does not seem to run/ load xsession or, more importantly,
  xinitrc and xresources

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to