mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
Fixed loaded message, Tray by default
This commit is contained in:
parent
d7e8ec95de
commit
f419a57e6d
12
main.go
12
main.go
@ -621,12 +621,12 @@ func start(asDaemon, firstCall bool) {
|
|||||||
app.err.Printf("Failure serving: %s", err)
|
app.err.Printf("Failure serving: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if firstRun {
|
|
||||||
app.info.Printf("Loaded, visit %s to start.", address)
|
|
||||||
} else {
|
|
||||||
app.info.Printf("Loaded @ %s", address)
|
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
|
if firstRun {
|
||||||
|
app.info.Printf("Loaded, visit %s to start.", address)
|
||||||
|
} else {
|
||||||
|
app.info.Printf("Loaded @ %s", address)
|
||||||
|
}
|
||||||
app.quit = make(chan os.Signal)
|
app.quit = make(chan os.Signal)
|
||||||
signal.Notify(app.quit, os.Interrupt)
|
signal.Notify(app.quit, os.Interrupt)
|
||||||
go func() {
|
go func() {
|
||||||
@ -779,7 +779,7 @@ You can then run:
|
|||||||
fmt.Print(info("systemctl --user stop jfa-go\n\n"))
|
fmt.Print(info("systemctl --user stop jfa-go\n\n"))
|
||||||
color.New(color.FgYellow).PrintFunc()("To restart: ")
|
color.New(color.FgYellow).PrintFunc()("To restart: ")
|
||||||
fmt.Print(info("systemctl --user stop jfa-go\n"))
|
fmt.Print(info("systemctl --user stop jfa-go\n"))
|
||||||
} else if TRAY && flagPassed("tray") {
|
} else if TRAY {
|
||||||
RunTray()
|
RunTray()
|
||||||
} else {
|
} else {
|
||||||
RESTART = make(chan bool, 1)
|
RESTART = make(chan bool, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user