Sorry, didn't mean to give you an ouchie :). After much digging I found
the solution. Apparently using a dbus interface fixes the code. Here we
go:

hal_dot = 'org.freedesktop.Hal'
hal_path = '/org/freedesktop/Hal'

bus = dbus.SystemBus()
hal_manager = bus.get_object(hal_dot, hal_path+'/Manager')
interface = dbus.Interface(hal_manager, hal_dot+'.Manager')
udi_list = interface.FindDeviceByCapability('volume')

and voila! it works.

-- 
[8.04]DBus.Error.AccessDenied on Hal.FindDeviceByCapability
https://bugs.launchpad.net/bugs/235134
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to