This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Plasma Notifications

Tags: None
(comma "," separated)
User avatar
jzarecta
Registered Member
Posts
34
Karma
0
OS

Plasma Notifications

Fri Dec 18, 2015 1:11 pm
Looking for information on Plasma Notification and how to set custom sounds, icons on such notifications. Seems that Knotify is no longer used and although it works on my system. But even then, I am not sure of all the options. Currently i have this code:
Code: Select all
knotify.event("warning", "kde", [], "Aviso", "Sell sell!!!"+ str(volatility[1]), [], [], 0, 0, dbus_interface="org.kde.KNotify")


However I want some documentation on the options including 'custom icon', and 'custom sound'.

On the new notification, I got issues with the version of the 'gi' module.
Code: Select all
>>> from gi.repository import Notify
sys:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.


I do have the binary, notify-send that simplify the triggers but still wonder about custom options. Regards.

Regards.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]