Ken Moffat wrote:
On Mon, Sep 14, 2015 at 07:58:39PM -0500, Bruce Dubbs wrote:
I'm trying to get the permissions right in an xfce session and I've narrowed
down the problem to ConsoleKit.  The symptom is that when trying to log out,
the poweroff, reboot, etc icons are greyed out and do not work.

I'm trying to get this to work at runlevel 3 and starting Xorg via the
command line.


Ah yes, this old problem.

When I log in, the session looks fine:

$ ck-list-sessions
Session1:
         unix-user = '1000'
         realname = 'Bruce Dubbs'
         seat = 'Seat1'
         session-type = ''
         active = TRUE
         x11-display = ''
         x11-display-device = ''
         display-device = '/dev/tty1'
         remote-host-name = ''
         is-local = TRUE
         on-since = '2015-09-15T00:35:23.549063Z'
         login-session-id = '1'


But after I startx, it looks like:

Session3:
         unix-user = '1000'
         realname = 'Bruce Dubbs'
         seat = 'Seat1'
         session-type = ''
         active = FALSE
         x11-display = ':0'
         x11-display-device = '/dev/tty1'
         display-device = '/dev/tty1'
         remote-host-name = ''
         is-local = TRUE
         on-since = '2015-09-15T00:38:01.457963Z'
         login-session-id = '1'
Session1:
         unix-user = '1000'
         realname = 'Bruce Dubbs'
         seat = 'Seat1'
         session-type = ''
         active = TRUE
         x11-display = ''
         x11-display-device = ''
         display-device = '/dev/tty1'
         remote-host-name = ''
         is-local = TRUE
         on-since = '2015-09-15T00:35:23.549063Z'
         login-session-id = '1'
         idle-since-hint = '2015-09-15T00:38:30.830416Z'

Notice that the Session 3 with x11-display = ':0' has active = FALSE.

My .xinitrc right now has
   ck-launch-session xfce4-session

One suggestion was:

  exec ck-launch-session dbus-launch startxfce4

because the user part of dbus (as well as the system part) is
needed.  But somebody else claims that dbus-session is spawned by
startxfce4.

Yes, it is.

I've also used 'startxfce4 --with-ck-launch' but as far
as I can remember none of them made any difference.

If you follow the source that resolves to
  ck-launch-session xfce4-session

-----

It's really common that as soon as you post a problem that you figure it out. Examining the startx script, I see that running

$ startx -- vt7

moves the x11-display-device back to tty7 and the session is now active and all the poweroff, etc buttons are active.

If I change ~/.xinitrc to just have
  xfce4-session

it also works. It seems to inherit the session from login.

But a plain 'startxfce4' does not. Another thing that does not work is not updating shadow or if the pam_ck_connector.so module in /etc/pam.d/system-session is not used.

The question now is how to address this in the book. We may have to do it separately for each desktop environment.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to