Ticket #147 (enhancement)

Opened 1 year ago

Support for reading notification body from file in notify-send

Status: new

Reported by: kevinoid Assigned to: chipx86
Priority: normal Milestone:
Component: libnotify Version:
Severity: normal Keywords:
Cc: D-BUS Version:
Patch Included: 1 OS/Distro Version:

It would be really nice if notify-send would support reading the notification body from a file (and stdin). This would allow it to be more easily used in pipelines with other commands or to display existing files without reading those files onto the command-line before invoking notify-send.

I have attached a patch that introduces the -f, --file option which causes notify-send to read the contents of the given file (or stdin if "-" is given) and use the contents as the body of the notification. It will produce an error if both the -f option and a command-line body option are given.

Attachments

notify-send-support_body_from_file.patch (2.8 kB) - added by kevinoid on 10/15/07 19:00:41.

Change History

10/15/07 19:00:41: Modified by kevinoid

  • attachment notify-send-support_body_from_file.patch added.