Reply to topic

Plasma notifications applet - icon source ?

User avatar metzman
Registered Member
Posts
128
Karma
2
OS
Quick question...
When a notification is displayed by the Notifications applet an icon for the originating application is (generally) shown.
What governs the choice of icon used? I assumed it was the icon for the application as specified in the applications .desktop file, is that correct?


Image openSUSE Tumbleweed x86_64 4.0.x ~ KDE 5.x --- Regards, Paul ---

If it isn't broken yet, then you've not fixed it enough. ;)
User avatar einar
Administrator
Posts
2769
Karma
5
OS
I'm thinking this is the case, but I'll ask a Plasma developer to be sure.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
bshah
Registered Member
Posts
44
Karma
0
OS
It is controlled by the application which sends the notification; for example

notify-send -a "Whatever" -i utilities-terminal "Hello" "Hello world"

will create notification applet with konsole icon and

notify-send -a "Whtever" -i kget "Hello" "Hello world"

will create notification with kget icon..
User avatar metzman
Registered Member
Posts
128
Karma
2
OS
bshah wrote:notify-send -a "Whtever" -i kget "Hello" "Hello world"

Interesting...
I've not got "libnotify-tools" installed (isn't that a "Gnome Thing"? :-\ )
I appreciate your input though, indirectly, you've solved a totally unrelated problem I had. Thanks.


Image openSUSE Tumbleweed x86_64 4.0.x ~ KDE 5.x --- Regards, Paul ---

If it isn't broken yet, then you've not fixed it enough. ;)
User avatar metzman
Registered Member
Posts
128
Karma
2
OS
einar wrote:I'm thinking this is the case, but I'll ask a Plasma developer to be sure.

If you could please, I'd appreciate that.


Image openSUSE Tumbleweed x86_64 4.0.x ~ KDE 5.x --- Regards, Paul ---

If it isn't broken yet, then you've not fixed it enough. ;)
User avatar einar
Administrator
Posts
2769
Karma
5
OS
Actually "bshah" over here is actually one of the newest Plasma developers ;)
But I'll ask some of the veterans too.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar metzman
Registered Member
Posts
128
Karma
2
OS
einar wrote:Actually "bshah" over here is actually one of the newest Plasma developers ;)
But I'll ask some of the veterans too.

No need - Think I was having a "Senior Moment" yesterday... :<
The notifications applet is passed the parameters, including the icon source, by the calling application - as "bshah" indicated. The fact that "libnotify-tools" was not installed is totally irrelevant.

Thanks


Image openSUSE Tumbleweed x86_64 4.0.x ~ KDE 5.x --- Regards, Paul ---

If it isn't broken yet, then you've not fixed it enough. ;)

 
Reply to topic

Bookmarks



Who is online

Registered users: andreas_k, B_old, Baidu [Spider], Bing [Bot], davidemme, einar, Exabot [Bot], Google [Bot], google01103, kilianl, Majestic-12 [Bot], MSN [Bot], musakarolia, naraesk, nharmony, pouar, rcameron, Steve Guilford, Vandalk, Yahoo [Bot]