fix: add icon quotes only when needed

fixes #59
This commit is contained in:
Tomasz Boguszewski 2024-05-08 11:20:06 +02:00 committed by GitHub
parent 452eee9454
commit d0865528f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,10 +61,10 @@ function _auto_notify_message() {
fi fi
local icon_arg="" local icon_arg=""
if [[ -n "$icon" ]]; then if [[ -n "$icon" ]]; then
icon_arg="--icon=$icon" icon_arg="\"--icon=$icon\""
fi fi
notify-send "$title" "$body" --app-name=zsh $transient "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" "$icon_arg" notify-send "$title" "$body" --app-name=zsh $transient "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" $icon_arg
elif [[ "$platform" == "Darwin" ]]; then elif [[ "$platform" == "Darwin" ]]; then
osascript \ osascript \
-e 'on run argv' \ -e 'on run argv' \