|
|
@ -9,6 +9,7 @@ import (
|
|
|
|
"syscall"
|
|
|
|
"syscall"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/getlantern/systray"
|
|
|
|
"github.com/getlantern/systray"
|
|
|
|
|
|
|
|
"github.com/skratchdot/open-golang/open"
|
|
|
|
// "github.com/getlantern/systray"
|
|
|
|
// "github.com/getlantern/systray"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -36,6 +37,7 @@ func onReady() {
|
|
|
|
mStart := systray.AddMenuItem("Start", "Start jfa-go")
|
|
|
|
mStart := systray.AddMenuItem("Start", "Start jfa-go")
|
|
|
|
mStop := systray.AddMenuItem("Stop", "Stop jfa-go")
|
|
|
|
mStop := systray.AddMenuItem("Stop", "Stop jfa-go")
|
|
|
|
mRestart := systray.AddMenuItem("Restart", "Restart jfa-go")
|
|
|
|
mRestart := systray.AddMenuItem("Restart", "Restart jfa-go")
|
|
|
|
|
|
|
|
mOpenLogs := systray.AddMenuItem("Open logs", "Open jfa-go log file.")
|
|
|
|
as := NewAutostart("jfa-go", "A user management system for Jellyfin", "Run on login", "Run jfa-go on user login.")
|
|
|
|
as := NewAutostart("jfa-go", "A user management system for Jellyfin", "Run on login", "Run jfa-go on user login.")
|
|
|
|
mQuit := systray.AddMenuItem("Quit", "Quit jfa-go")
|
|
|
|
mQuit := systray.AddMenuItem("Quit", "Quit jfa-go")
|
|
|
|
|
|
|
|
|
|
|
@ -88,6 +90,8 @@ func onReady() {
|
|
|
|
mStop.Enable()
|
|
|
|
mStop.Enable()
|
|
|
|
mRestart.Enable()
|
|
|
|
mRestart.Enable()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
case <-mOpenLogs.ClickedCh:
|
|
|
|
|
|
|
|
open.Start(logPath)
|
|
|
|
case <-mQuit.ClickedCh:
|
|
|
|
case <-mQuit.ClickedCh:
|
|
|
|
systray.Quit()
|
|
|
|
systray.Quit()
|
|
|
|
// case <-mOnLogin.ClickedCh:
|
|
|
|
// case <-mOnLogin.ClickedCh:
|
|
|
|