Features/Messages Notification: Difference between revisions
Sascha silbe (talk | contribs) →Detailed Description: add reference to the protocol specification |
Sascha silbe (talk | contribs) →How To Test: fix formatting |
||
| Line 51: | Line 51: | ||
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> | |||
== User Experience == | == User Experience == | ||