[notify-send] `--action` and `--expire-time` together do not work as intended
When running notify-send
with an action and timeout specified (via --action
and --expire-time
respectively), the command does not exit after the specified timeout duration.
This behavior is contrary to the intended behavior:
If a notification is closed via timeout... the program exists successfully with no output.
...as well as advertised behavior on the man page (--action
implies --wait
):
-w, --wait Wait for the notification to be closed before exiting. If the expire-time is set, it will be used as the maximum waiting time.
This intended behavior is useful for scripts which run an action and then provide an optional followup action via notify-send
, for instance to take a screenshot and then optionally open it via a graphics editor. Without this the script will just run infinitely, taking up system resources, which compounds on multiple script runs.
Example running notify-send --action=foo --expire-time 3000 bar
, which should exit after 3000 milliseconds:
I am using the latest upstream HEAD
version of libnotify
, via libnotify-git
on the AUR.