patch: notify-send script that gracefully ignores options and redirects to herbe#10
Open
cemkeylan wants to merge 1 commit intodudik:masterfrom
Open
patch: notify-send script that gracefully ignores options and redirects to herbe#10cemkeylan wants to merge 1 commit intodudik:masterfrom
cemkeylan wants to merge 1 commit intodudik:masterfrom
Conversation
Just add that script to your $PATH |
owm111
pushed a commit
to owm111/herbe
that referenced
this pull request
Jun 18, 2022
Taken from dudik#10
owm111
pushed a commit
to owm111/herbe
that referenced
this pull request
Jun 18, 2022
Taken from dudik#10
owm111
pushed a commit
to owm111/herbe
that referenced
this pull request
Jun 18, 2022
Taken from dudik#10
|
Are you missing the --app-name option? diff --git a/notify-send b/notify-send
old mode 100755
new mode 100644
index 3a3872b..edd76d5
--- a/notify-send
+++ b/notify-send
@@ -31,6 +31,11 @@ parse() {
OPTARG=$2
_=$OPTARG
shift ;;
+ -a | --app-name)
+ [ $# -le 1 ] && set -- "$1" required && break
+ OPTARG=$2
+ _=$OPTARG
+ shift ;;
-t | --expire-time)
[ $# -le 1 ] && set -- "$1" required && break
OPTARG=$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
So many shell scripts call notify-send, and I have seen a lot of those use options in them. This script parses and ignores these options, and redirects the rest to herbe. It calls herbe async to replicate the behaviour of notify-send.
Download
notify-send