diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-03-19 08:38:18 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-03-20 10:29:26 +0100 |
commit | e7ab6ad504b0a7524766717c9b68c2ac332f07f1 (patch) | |
tree | 4745266ce68ac64daec66c7e8b8d5036119f22b5 /systray.go | |
parent | 5dd03466c628b63ce4f746997e4fb77f0f2b960f (diff) |
[feat] only one systray can be in execution
Create a systray.pid file to check if another systray is in execution
and only one systray is allowed to be running.
- Resolves: #17
Diffstat (limited to 'systray.go')
-rw-r--r-- | systray.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -116,7 +116,10 @@ func (bt *bmTray) onReady() { case <-mQuit.ClickedCh: systray.Quit() + // XXX: this a hack as quit doesn't work + // this should be done by defer in the main function bt.bm.Close() + releasePID() log.Println("Quit now...") os.Exit(0) |