Changes

→‎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):
   −
  import dbus
+
<code><pre>
  BUS_NAME = 'org.freedesktop.Notifications'
+
import dbus
  OBJ_PATH = '/org/freedesktop/Notifications'
+
BUS_NAME = 'org.freedesktop.Notifications'
  IFACE_NAME = 'org.freedesktop.Notifications'
+
OBJ_PATH = '/org/freedesktop/Notifications'
  bus = dbus.SessionBus()
+
IFACE_NAME = 'org.freedesktop.Notifications'
  notify_obj = bus.get_object(BUS_NAME,OBJ_PATH)
+
bus = dbus.SessionBus()
  notifications = dbus.Interface(notify_obj,IFACE_NAME)
+
notify_obj = bus.get_object(BUS_NAME,OBJ_PATH)
  notifications.Notify("HelloWorld",0,'',"Summary","Body",[],{},-1)
+
notifications = dbus.Interface(notify_obj,IFACE_NAME)
 +
notifications.Notify("HelloWorld",0,'',"Summary","Body",[],{},-1)
 +
</pre></code>
    
== User Experience ==
 
== User Experience ==
344

edits