| The Following User Says Thank You to pichlo For This Useful Post: | ||
| The Following 4 Users Say Thank You to taixzo For This Useful Post: | ||
) is involved. Have a look at dbus-scripts-settings (a package). This allows all user configurable actions (scripts).| The Following 2 Users Say Thank You to jellyroll For This Useful Post: | ||
import gobject, dbus
from dbus.mainloop.glib import DBusGMainLoop
def handle_sms(pdu, msgcenter, somestring, sendernumber):
print 'New message from %s' % sendernumber
DBusGMainLoop(set_as_default=True)
bus = dbus.SystemBus()
bus.add_signal_receiver(handle_sms, path='/com/nokia/phone/SMS', dbus_interface='Phone.SMS', signal_name='IncomingSegment')
gobject.MainLoop().run()
| The Following 3 Users Say Thank You to ade For This Useful Post: | ||
DBusGMainLoop(set_as_default=True) bus = dbus.SystemBus() bus.add_signal_receiver(handle_sms, path='/com/nokia/phone/SMS', dbus_interface='Phone.SMS', signal_name='IncomingSegment') gobject.MainLoop().run()
| The Following User Says Thank You to robthebold For This Useful Post: | ||