Fix transient argument

The transient variable must not be quoted. Otherwise the command fails
with `Invalid number of options.` for unsuccessful error codes.
This commit is contained in:
Grafcube 2023-05-11 17:02:14 +05:30
parent 71e8da986f
commit 5a50536e59
No known key found for this signature in database
GPG key ID: E383688F2878A440

View file

@ -56,7 +56,7 @@ function _auto_notify_message() {
urgency="critical"
transient=""
fi
notify-send "$title" "$body" --app-name=zsh "$transient" "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME"
notify-send "$title" "$body" --app-name=zsh $transient "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME"
elif [[ "$platform" == "Darwin" ]]; then
osascript \
-e 'on run argv' \