View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#19
use notifer.py likr this: python /path/notifer.py. Use it also as USER from spec file.
Code:
#!/usr/bin/python
import dbus

bus = dbus.SessionBus()
object = bus.get_object('org.freedesktop.Notifications','/org/freedesktop/Notifications')
interface = dbus.Interface(object,'org.freedesktop.Notifications')
#print(interface.GetCapabilities())

interface.Notify("app_name",
                 0,
                 "icon-m-notifications",
                 "Dalvik is STOPPED !",
                 "Dalvik stopper",
                 dbus.Array(["default", ""]),
                 dbus.Dictionary({"x-nemo-preview-body": "Dalvik stopper",
                                  "x-nemo-preview-summary": "Dalvik is STOPPED !"},
                                  signature='sv'),
                 0)
that mean:
Code:
su -l nemo -c "python /path/notifer.py"

Last edited by Schturman; 2014-04-01 at 22:19.
 

The Following User Says Thank You to Schturman For This Useful Post: