From f63e14da396bcadbfb0d6a692505df3facd81bf5 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Mon, 9 May 2022 13:49:36 +0100 Subject: [PATCH] Custom icons (unix). --- util_unix.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util_unix.go b/util_unix.go index c71e9f6..5d5a3ce 100644 --- a/util_unix.go +++ b/util_unix.go @@ -42,6 +42,9 @@ func appendWidthHeight(args []string, opts options) []string { } func appendIcon(args []string, opts options) []string { + if opts.customIcon != "" { + args = append(args, "--window-icon", opts.customIcon) + } switch opts.icon { case ErrorIcon: args = append(args, "--window-icon=error")