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

Plasma notifications applet - icon source ?

Tags: None
(comma "," separated)
metzman
Registered Member
Posts
171
Karma
3
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?
User avatar
einar
Administrator
Posts
3402
Karma
7
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
77
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..
metzman
Registered Member
Posts
171
Karma
3
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.
metzman
Registered Member
Posts
171
Karma
3
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.
User avatar
einar
Administrator
Posts
3402
Karma
7
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
metzman
Registered Member
Posts
171
Karma
3
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


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar