From Fedora Project Wiki
(Created page with '= Fedora Notifications System = == The Reason == A large number of Fedora users don't read the Fedora wiki & websites, thus, they miss important tips & notifications. == The Co...') |
|||
Line 1: | Line 1: | ||
== The Reason == | == The Reason == | ||
A large number of Fedora users don't read the Fedora wiki & websites, thus, they miss important tips & notifications. | A large number of Fedora users don't read the Fedora wiki & websites, thus, they miss important tips & notifications. |
Revision as of 18:41, 4 August 2010
The Reason
A large number of Fedora users don't read the Fedora wiki & websites, thus, they miss important tips & notifications.
The Concept
A simple application that reads a multilanguage web feed & post a new notification to the system D-Bus notifications system.
</prototypes>
Python D-Bus Notifications Example
This is a simple Python application to post a notification to the system D-Bus notifications system:
import dbus bus = dbus.SessionBus() notifications = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') interface = dbus.Interface(notifications, 'org.freedesktop.Notifications') id = 4856 timeout = 2500 interface.Notify('name',id,'','summary','body','','',timout)