notify-send icon doesn't work

Bug #1511217 reported by Kurisu Brooks
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
elementary OS
Invalid
Undecided
Unassigned

Bug Description

When using the notify-send command to create a notification, the `--icon` flag will not set.
I've tried multiple variations of the syntax, including `--icon=./icon.png`, `--icon=icon.png` and `--icon="icon.png"`, but the notification still appears with the default notification icon.

Also, setting the App Name (--app-name) doesn't seem to do anything either.

I hope you'll be able to spend some more time on notify-send, as I find it quite an important feature, especially for my program that I wish to release to Linux.

Revision history for this message
Kurisu Brooks (kurisubrooks) wrote :

I've attached a screenshot with an image of an example. Icons seem to be completely unsupported or not working.

Revision history for this message
Danielle Foré (danrabbit) wrote :

notify-send doesn't accept absolutely paths for icon. It only accepts icon names (as installed to the system). Check the notify-send man pages.

As a developer, you shouldn't be implementing notifications using notify-send. Please see glib.notification http://valadoc.org/#!api=gio-2.0/GLib.Notification

Changed in elementaryos:
status: New → Invalid
Revision history for this message
Kurisu Brooks (kurisubrooks) wrote :

As the program is not written in Vala, but nodejs (multi-platform application), i'm unsure of how i'd be able to incorporate this.

In ubuntu and debian (both tested), they can take absolute paths without a problem. Leaving this bug to be rather unique to Freya.

Revision history for this message
vincelwt (vincelwt) wrote :

Exact same problem here, tried using the cli command as well, but without chance. This should be reopened.

Revision history for this message
Kurisu Brooks (kurisubrooks) wrote : Re: [Bug 1511217] Re: notify-send icon doesn't work

I believe it should also. It works in base Ubuntu and all of its main
flavours, but does not work in Elementary OS. Quite disappointing to see a
dev claim a bug is intended to work how it shouldn't.
On 25 Feb 2016 9:36 AM, "vincelwt" <email address hidden> wrote:

> Exact same problem here, tried using the cli command as well, but
> without chance. This should be reopened.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1511217
>
> Title:
> notify-send icon doesn't work
>
> Status in elementary OS:
> Invalid
>
> Bug description:
> When using the notify-send command to create a notification, the
> `--icon` flag will not set.
> I've tried multiple variations of the syntax, including
> `--icon=./icon.png`, `--icon=icon.png` and `--icon="icon.png"`, but the
> notification still appears with the default notification icon.
>
> Also, setting the App Name (--app-name) doesn't seem to do anything
> either.
>
> I hope you'll be able to spend some more time on notify-send, as I
> find it quite an important feature, especially for my program that I
> wish to release to Linux.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/elementaryos/+bug/1511217/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.