Changes

Jump to navigation Jump to search
no edit summary
Line 50: Line 50:  
== How To Test ==
 
== How To Test ==
 
Running this python script should work (provided by Gonzalo Odiard):
 
Running this python script should work (provided by Gonzalo Odiard):
 +
<code><pre>
 +
import dbus
 +
BUS_NAME = 'org.freedesktop.Notifications'
 +
OBJ_PATH = '/org/freedesktop/Notifications'
 +
IFACE_NAME = 'org.freedesktop.Notifications'
 +
bus = dbus.SessionBus()
 +
notify_obj = bus.get_object(BUS_NAME,OBJ_PATH)
 +
notifications = dbus.Interface(notify_obj,IFACE_NAME)
 +
notifications.Notify("HelloWorld",0,'',"Summary","Body",[],{},-1)
 +
</pre></code>
    
== Internet-Links in Notifications ==
 
== Internet-Links in Notifications ==
Line 107: Line 117:       −
  −
<code><pre>
  −
import dbus
  −
BUS_NAME = 'org.freedesktop.Notifications'
  −
OBJ_PATH = '/org/freedesktop/Notifications'
  −
IFACE_NAME = 'org.freedesktop.Notifications'
  −
bus = dbus.SessionBus()
  −
notify_obj = bus.get_object(BUS_NAME,OBJ_PATH)
  −
notifications = dbus.Interface(notify_obj,IFACE_NAME)
  −
notifications.Notify("HelloWorld",0,'',"Summary","Body",[],{},-1)
  −
</pre></code>
      
== User Experience ==
 
== User Experience ==
525

edits

Navigation menu