[Feature request] notify-send option to change the "notify-send" app name that appears in all my notifications.

Bug #1255591 reported by valadil
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnotify (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

(I wasn't sure if feature requests counted as bug reports or questions. My apologies if I guessed wrong. I also apologize if this is the wrong place for a patch, but I couldn't find a repo to fork.)

I use notify-send in a number of shell scripts. I would like it to be able to accurately report which script is sending the notification. Instead I'm stuck with "notify-send" as the application responsible for creating all the notifications.

I saw that the string "notify-send" appears exactly once in notify-send.c. So I added a cli option, -l/--app-label, to change it. Here's the patch:

```
128a129
> static char *app_label = NULL;
151a153,154
> {"app-label", 'l', 0, G_OPTION_ARG_STRING, &app_label,
> N_("Specifies the label shown in the notification (default: notify-send)"), N_("APP_LABEL")},
223c226
< if (!notify_init ("notify-send"))
---
> if (!notify_init (app_label != NULL ? app_label : "notify-send"))
```

This is for libnotify-0.7.6 downloaded with apt-get source libnotify. I figure the patch is trivial enough that the version probably doesn't matter too much. I'd appreciate it if this functionality could make it into libnotify, but I don't care if it's implemented with my patch or some other method.

Thanks!

Tags: patch
Revision history for this message
valadil (valadil) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "notify-send -l/--app-label" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Changed in libnotify (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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