Skip to content

Commit

Permalink
setup notifier after systray init (#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett authored Oct 18, 2024
1 parent a03902d commit 7a40279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/launcher/desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
}()

Expand Down

0 comments on commit 7a40279

Please sign in to comment.