From d0865528f69fa445748c31df54149ec2f1823951 Mon Sep 17 00:00:00 2001 From: Tomasz Boguszewski <62602570+Grelo4ka@users.noreply.github.com> Date: Wed, 8 May 2024 11:20:06 +0200 Subject: [PATCH] fix: add icon quotes only when needed fixes #59 --- auto-notify.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index a2dc4c3..aa6a13a 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -61,10 +61,10 @@ function _auto_notify_message() { fi local icon_arg="" if [[ -n "$icon" ]]; then - icon_arg="--icon=$icon" + icon_arg="\"--icon=$icon\"" 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 osascript \ -e 'on run argv' \