diff --git a/entry_darwin.go b/entry_darwin.go index 039a296..686cea1 100644 --- a/entry_darwin.go +++ b/entry_darwin.go @@ -12,7 +12,11 @@ func entry(text string, opts options) (string, error) { data.Options.Answer = &opts.entryText data.Options.Hidden = opts.hideText data.Options.Timeout = zenutil.Timeout - data.Options.Icon = opts.icon.String() + if opts.customIcon != "" { + data.IconPath = opts.customIcon + } else { + data.Options.Icon = opts.icon.String() + } data.SetButtons(getButtons(true, true, opts)) out, err := zenutil.Run(opts.ctx, "dialog", data)