Reply to topic

Plasma notifications applet - icon source ?

User avatar metzman
Registered Member
Posts
84
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 13.1 ~ KDE 4.12 --- Regards, Paul ---

If it isn't broken yet, then you've not fixed it enough. ;)
User avatar einar
Administrator
Posts
2272
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
10
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
84
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 13.1 ~ KDE 4.12 --- Regards, Paul ---

If it isn't broken yet, then you've not fixed it enough. ;)
User avatar metzman
Registered Member
Posts
84
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 13.1 ~ KDE 4.12 --- Regards, Paul ---

If it isn't broken yet, then you've not fixed it enough. ;)
User avatar einar
Administrator
Posts
2272
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
84
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 13.1 ~ KDE 4.12 --- Regards, Paul ---

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

 
Reply to topic

Bookmarks



Who is online

Registered users: aliabee, Baidu [Spider], Bing [Bot], Exabot [Bot], garthecho, gldvorak, Google [Bot], Hans, koriun, La Ninje, onesandzeros, Yahoo [Bot]