Ok, now with working pop up notification and using jolla icons placed in /usr/share/themes/jolla-ambient/meegotouch/icons/ https://dl.dropboxusercontent.com/u/...0108112941.jpg 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", "Here is the title", "and here the body", dbus.Array(["default", ""]), dbus.Dictionary({"x-nemo-preview-body": "preview body", "x-nemo-preview-summary": "preview summary"}, signature='sv'), 0)
#!/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", "Here is the title", "and here the body", dbus.Array(["default", ""]), dbus.Dictionary({"x-nemo-preview-body": "preview body", "x-nemo-preview-summary": "preview summary"}, signature='sv'), 0)
[root@localhost ~]# python /usr/share/jolla-mods/test.py Traceback (most recent call last): File "/usr/share/jolla-mods/test.py", line 4, in <module> bus = dbus.SessionBus() File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 211, in __new__ mainloop=mainloop) File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 100, in __new__ bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop) File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 122, in __new__ bus = cls._new_for_bus(address_or_type, mainloop=mainloop) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11