the script /etc/X11/Sessions/Xfce4 is meant to launch a working xfce4 session when not using a DM that does compete session management. SLiM and XDM both use this script. At present it simply exec's startxfce4, which then (eventually) references /etc/xdg/xfce4/xinitrc to set up the actual session. Although this does invoke dbus-launch and ssh-agent if applicable, it does not invoke ck-launch-session. As dbus-launch, ck-launch-session, and others are now invokable via /etc/X11/xinit/xinitrc.d/* , it would be nice if support for this would be added to /etc/X11/Sessions/Xfce4 to make it more standard and to add support for ck-launch-session if applicable. I will be attaching a script that could be used in lieu of the current script. Alternatively, if /etc/xdg/xfce4/xinitrc could be patched to handle ck-launch-session in addition to dbus-launch, ssh-agent, etc., this would also be an acceptable (although I think less standard) means of addressing the root issue. Reproducible: Always
Created attachment 279109 [details] /etc/X11/Sessions/Xfce4 This file is based in part on the Xsession script from GDM, and the suggestions found at https://wiki.archlinux.org/index.php/Xfce#Running_Xfce (see the 'file ~/.xinitrc' box).
I expect that the solution I presented here is a better one than bug 370089 (listing for convenience)
...or not. I wrote this on the basis that xinitrc.d was entirely in effect, and it seems that it is still in transition (ie, 50-ssh-agent etc. are installed by gdm, not by openssh).. Since xinitrc.d/ does not seem to have been generically implemented yet the solution i presented may be premature.
After further research, it's become apparent that this is not the way to go to ensure consolekit support in Xfce4; the DM's should handle it (and other xinitrc.d scripts).