Print "\nfound a volume or partition at %s \n" % device_interface.GetProperty('vice') If device_interface.PropertyExists('volume.uuid'): So a fixed version of that code would be:įrom import DBusGMainLoopĭevice_object = dbus_system_bus.get_object('', device_udi)ĭevice_interface = dbus.Interface(device_object, '') I needed to use the device_object as a reference to build a dbus interface with that device (in hal). but there is definately a bug in that script now.The problem is that I was calling up a device_object and trying to use that to do the GetProperty stuff and whatnot. I don't know if it was a bug in the script originally or they changed how the dbus scripting works. Similar messages appear when the dev_object's GetProperty() method is called.Does anybody have an idea why this doesn't work?Or how i can turn off this security policy?I have diabled SELinux, so that shouldn't be the cause.Thank you Jody Return self._proxy_method(*args, **keywords)įile "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 135, in _call_įile "/usr/lib/python2.5/site-packages/dbus/connection.py", line 603, in call_blockingĭBusException: .AccessDenied: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "(unset)" member "PropertyExists" error name "(unset)" destination ":1.4") If device_object.PropertyExists('volume.uuid', ''):įile "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 63, in _call_ Hal_nnect_to_signal('DeviceAdded', lambda *args: Responder(*args))įile "volcheck.py", line 14, in Responder But when i plugged in my memory stick,the following warning was displayed about 7 times: /org/freedesktop/Hal/devices/volume_uuid_0A7D_B588ĮRROR:nnection:Exception in handler for D-Bus signal:įile "/usr/lib/python2.5/site-packages/dbus/connection.py", line 210, in maybe_handle_message HiI would like to do something similar to what norton_I wanted to do ( HAL/dbus/gnome-volume-manager scripting)What i intend is that if my video camera is plugged in,a python tkinter application is started.I copied the little script provided by drag in the discussion mentioned above, and ran it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |