Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2008 13:27:14 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Stefan Hauser <etienne@usr.ch>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: consolekit/polkit problem
Message-ID:  <1206725234.2392.34.camel@shumai.marcuscom.com>
In-Reply-To: <200803280744.m2S7i3UV027429@multi.usr.ch>
References:  <200803280744.m2S7i3UV027429@multi.usr.ch>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-3th2vNgFEBF7J5zl3mhC
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2008-03-28 at 08:44 +0100, Stefan Hauser wrote:
> > > i just can't get the polkit stuff to work..=20
> >=20
> > Are you using GDM to start GNOME?  If so, what is the output of
> > ck-list-sessions?
>=20
> yes. i use gdm. output of ck-list-seesion is:
> Session1:
> 	uid =3D '1042'
> 	realname =3D 'Stefan Hauser'
> 	seat =3D 'Seat1'
> 	session-type =3D ''
> 	active =3D TRUE
> 	x11-display =3D ':0'
> 	x11-display-device =3D '/dev/ttyv8'
> 	display-device =3D ''
> 	remote-host-name =3D ''
> 	is-local =3D TRUE
> 	on-since =3D '2008-03-28T07:28:41Z'
>=20
> i digged trought the source, and from the following error-messages, it se=
ems
> consolekit-daemon can't lookup the XDG_SESSION_COOKIE for the process. an=
d
> 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

>=20
> > > i only get such messages:
> > >=20
> > > 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 =3D 1042
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: pid =3D 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 =3D 1042
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: pid =3D 1469
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: GLib-CRITICAL: g_hash=
_table_lookup: assertion `hash_table !=3D NULL' failed
> > > Mar 27 19:41:50 think kernel: Mar 27 19:41:50 think console-kit-daemo=
n[1345]: GLib-CRITICAL: g_hash_table_lookup: assertion `hash_table !=3D NUL=
L' failed
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: GLib-CRITICAL: g_hash=
_table_destroy: assertion `hash_table !=3D NULL' failed
> > > Mar 27 19:41:50 think kernel: Mar 27 19:41:50 think console-kit-daemo=
n[1345]: GLib-CRITICAL: g_hash_table_destroy: assertion `hash_table !=3D NU=
LL' failed
> > > Mar 27 19:41:50 think console-kit-daemon[1345]: DEBUG: CkManager: una=
ble to lookup session for unix process: 1469
> > >=20
> > > i have gnome_enable in /etc/rc.conf, and login via gdm.
> > >=20
> > > console-kit-daemon, dbus, hal, all running.
> > > but i can't change anything in the polkit autorizations, nor get i as=
ked for
> > > a password, when i attemp to do something, which needs one...=20
> > > 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 lo=
g get's
> > > spammed with such entries:
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: NameOwnerChang=
ed: service
> > > _name=3D':1.5986', old_service_name=3D'' new_service_name=3D':1.5986'
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: NameOwnerChang=
ed: service_name=3D':1.5986', old_service_name=3D'' new_service_name=3D':1.=
5986'
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: Removing sessi=
ons for service name: :1.5986
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: NameOwnerChang=
ed: service_name=3D':1.5986', old_service_name=3D':1.5986' new_service_name=
=3D''
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: Removing sessi=
ons for service name: :1.5986
> > > Mar 27 21:23:09 think console-kit-daemon[1345]: DEBUG: NameOwnerChang=
ed: service_name=3D':1.5986', old_service_name=3D':1.5986' new_service_name=
=3D''
> > >=20
> > > and nothing else happens...
> > >=20
> > > any pointers, what could be wrong, or how i could debug this problem =
?
>=20
--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-3th2vNgFEBF7J5zl3mhC
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEABECAAYFAkftKnIACgkQb2iPiv4Uz4f9KwCeNNIm0JfDHTyRUTBqK0+PlhMa
bHYAoIbMUcFhB3gSEe7zNG5nISVLiZFN
=E+ay
-----END PGP SIGNATURE-----

--=-3th2vNgFEBF7J5zl3mhC--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1206725234.2392.34.camel>