Problem with PolicyKit and Python
albertomilone at gmail.com
Wed Jun 18 02:31:20 PDT 2008
I'm experimenting a bit with Dbus and PolicyKit in Python but I'm facing
I see the dialog which lets me enter the password, and when I do, I get
File "policyui.py", line 102, in on_button_clicked
File "policyui.py", line 44, in get_grub_conf_service
service_object = dbus.SystemBus().get_object(SERVICE_NAME,
File "/var/lib/python-support/python2.5/dbus/bus.py", line 244, in
File "/var/lib/python-support/python2.5/dbus/proxies.py", line 241, in
self._named_service = conn.activate_name_owner(bus_name)
File "/var/lib/python-support/python2.5/dbus/bus.py", line 183, in
File "/var/lib/python-support/python2.5/dbus/bus.py", line 281, in
'su', (bus_name, flags)))
File "/var/lib/python-support/python2.5/dbus/connection.py", line 607,
org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with
unknown return code 1
I have taken as a model both gnome-lirc-properties and grubconf. What
I'm trying to do is show a gtk dialog with a button, and when this
button is clicked, the authorisation dialog shows up and (in theory) a
new file (xorgpol.txt) is created in /etc/X11 . See the attached tarball
for further details.
I'm using Ubuntu Hardy 32bit and I put the .conf, .service and .policy
files (respectively) in:
I hope you can help me with this problem.
Thanks in advance.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5773 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080618/47a46ced/attachment.bin
More information about the dbus