diff --git a/cmd/backrest/tray.go b/cmd/backrest/tray.go index 68db4f2c..cca1b36c 100644 --- a/cmd/backrest/tray.go +++ b/cmd/backrest/tray.go @@ -16,7 +16,10 @@ func startTray() { status := newTrayStatus() // Observe oplog status in-process so the icon can reflect backup state. onOpLogReady = status.attach - go runApp() + go func() { + runApp() + systray.Quit() + }() systray.Run(func() { onReady(status) }, func() {}) }