Features/Notification Urgency: Difference between revisions
No edit summary |
|||
| Line 38: | Line 38: | ||
notify_obj = bus.get_object(BUS_NAME,OBJ_PATH) | notify_obj = bus.get_object(BUS_NAME,OBJ_PATH) | ||
notifications = dbus.Interface(notify_obj,IFACE_NAME) | notifications = dbus.Interface(notify_obj,IFACE_NAME) | ||
# 0=low, 1=normal, 2=critical | # 0=low, 1=normal, 2=critical | ||
# CHANGE ME!!! | # CHANGE ME!!! | ||
urgency = 1 | urgency = 1 | ||
notifications.Notify("Software Update", 0, "", "New activities are available!", "Please check your activities list", [], {'x-sugar-icon-name': 'module-updater', 'urgency': urgency}, -1) | notifications.Notify("Software Update", 0, "", "New activities are available!", "Please check your activities list", [], {'x-sugar-icon-name': 'module-updater', 'urgency': urgency}, -1) | ||
== Dependencies == | == Dependencies == | ||