[Feature request] notify-send option to change the "notify-send" app name that appears in all my notifications.
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_
> 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!
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.]