I'm running a fully updated Ubuntu 11.10 install and I've been using LightDM to launch a "User Defined Session" which executes the .xsession script in my home folder. The script that I have written runs perfectly with the exception that I can not mount partitions in nautilus or access the User Accounts entry of System Settings. I presume this is a problem with policykit not starting correctly due to a problem with my script. Any help would be appreciated.
My .xsession:
#! /bin/bash
ck-launch-session dbus-launch compiz &
ck-launch-session dbus-launch gnome-settings-daemon &
ck-launch-session dbus-launch docky &
ck-launch-session dbus-launch synapse
Best Answer
The solution to this problem is not a .xsession script, but a custom tailored gnome session, just like unity, unity2d, gnome-classic are all varieties of the gnome desktop.
The Session file
Place this under
/usr/share/gnome-session/sessions
and name itdocky.session
The xsession file
Place this under
/usr/share/xsessions
and name itdocky.desktop
It is just too much work to figure out which freedesktop stuff like DBus, policykit, gvfs has to be started in which order, just let the gnome-session do the heavy lifting and concentrate on what is considered essential.
EDIT: This works with 11.04 and gdm, but the session file format has changed in 11.10, so
docky.session
needs to look like: