consolekit/polkit problem

Stefan Hauser etienne at usr.ch
Fri Mar 28 00:44:10 PDT 2008


> > 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.

> > 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 ?


More information about the freebsd-gnome mailing list