View Single Post
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#2
Apparently you're supposed to set error_handler and reply_handler to None. When I did that, though, it didn't send the message.

I worked around it like this:
Code:
import dbus

bus = dbus.bus.BusConnection("unix:path=/var/run/dbus/system_bus_socket")
object = bus.get_object('com.nokia.mce', '/com/nokia/mce/request', introspect=False)
interface = dbus.Interface(object, dbus_interface='com.nokia.mce.request')
try:
	interface.devlock_callback(dbus.Int32("2"), timeout = 0)
except dbus.exceptions.DBusException:
	pass
 

The Following User Says Thank You to jstokes For This Useful Post: