From dc3ea050ccfa16426a62dc8b48d4cc1a457f99d7 Mon Sep 17 00:00:00 2001 From: James Pickett Date: Fri, 18 Oct 2024 13:13:59 -0700 Subject: [PATCH] setup notifier after systray init --- cmd/launcher/desktop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/launcher/desktop.go b/cmd/launcher/desktop.go index 10d1b6afd..e9fbe291a 100644 --- a/cmd/launcher/desktop.go +++ b/cmd/launcher/desktop.go @@ -131,7 +131,6 @@ func runDesktop(_ *multislogger.MultiSlogger, args []string) error { // Set up notification sending and listening notifier := notify.NewDesktopNotifier(slogger, *flIconPath) - runGroup.Add("desktopNotifier", notifier.Listen, notifier.Interrupt) server, err := userserver.New(slogger, *flUserServerAuthToken, *flUserServerSocketPath, shutdownChan, showDesktopChan, notifier) if err != nil { @@ -187,6 +186,7 @@ func runDesktop(_ *multislogger.MultiSlogger, args []string) error { go func() { // wait to show desktop until we get the signal from root <-showDesktopChan + runGroup.Add("desktopNotifier", notifier.Listen, notifier.Interrupt) systray.Show() }()