consolekit/polkit problem
Joe Marcus Clarke
marcus at marcuscom.com
Fri Mar 28 10:27:20 PDT 2008
On Fri, 2008-03-28 at 08:44 +0100, Stefan Hauser wrote:
> > > i just can't get the polkit stuff to work..
> >
> > Are you using GDM to start GNOME? If so, what is the output of
> > ck-list-sessions?
>
> yes. i use gdm. output of ck-list-seesion is:
> Session1:
> uid = '1042'
> realname = 'Stefan Hauser'
> seat = 'Seat1'
> session-type = ''
> active = TRUE
> x11-display = ':0'
> x11-display-device = '/dev/ttyv8'
> display-device = ''
> remote-host-name = ''
> is-local = TRUE
> on-since = '2008-03-28T07:28:41Z'
>
> i digged trought the source, and from the following error-messages, it seems
> consolekit-daemon can't lookup the XDG_SESSION_COOKIE for the process. and
> consequently, i dont geht any autorisations from polkit.
XDG_SESSION_COOKIE should be set by gdm. You can do a ps -auwwex and
grep for gnome-session to see that it's being set in the environment.
The only other time I've seen such a problem is when the user's home
directory was not owned by them with their primary group as the gid.
Joe
>
> > > i only get such messages:
> > >
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: CkManager: get current session
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: uid = 1042
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: pid = 1469
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: CkManager: get session for unix process: 1469
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: uid = 1042
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: pid = 1469
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: GLib-CRITICAL: g_hash_table_lookup: assertion `hash_table != NULL' failed
> > > Mar 27 19:41:50 think kernel: Mar 27 19:41:50 think console-kit-daemon[1345]: GLib-CRITICAL: g_hash_table_lookup: assertion `hash_table != NULL' failed
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: GLib-CRITICAL: g_hash_table_destroy: assertion `hash_table != NULL' failed
> > > Mar 27 19:41:50 think kernel: Mar 27 19:41:50 think console-kit-daemon[1345]: GLib-CRITICAL: g_hash_table_destroy: assertion `hash_table != NULL' failed
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: CkManager: unable to lookup session for unix process: 1469
> > >
> > > i have gnome_enable in /etc/rc.conf, and login via gdm.
> > >
> > > console-kit-daemon, dbus, hal, all running.
> > > but i can't change anything in the polkit autorizations, nor get i asked for
> > > a password, when i attemp to do something, which needs one...
> > > eg. i try to mount a msdos volume in the file browser..
> > > polkit-gnome-manager and gnome-mount start to use all cpu, and the log get's
> > > spammed with such entries:
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: NameOwnerChanged: service
> > > _name=':1.5986', old_service_name='' new_service_name=':1.5986'
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: NameOwnerChanged: service_name=':1.5986', old_service_name='' new_service_name=':1.5986'
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: Removing sessions for service name: :1.5986
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: NameOwnerChanged: service_name=':1.5986', old_service_name=':1.5986' new_service_name=''
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: Removing sessions for service name: :1.5986
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: NameOwnerChanged: service_name=':1.5986', old_service_name=':1.5986' new_service_name=''
> > >
> > > and nothing else happens...
> > >
> > > any pointers, what could be wrong, or how i could debug this problem ?
>
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20080328/6426258a/attachment.pgp
More information about the freebsd-gnome
mailing list