it's worth building before doing a commit.

and no, this isn't going to work either

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-06 10:44:10 -07:00
parent dc4d1549b7
commit fec14f2ef2
1 changed files with 8 additions and 2 deletions

10
main.go
View File

@ -5,7 +5,8 @@ import "os"
import "time"
import "reflect"
import "os/signal"
// import "os/syscall"
import "syscall"
import "runtime"
// this is the king of dns libraries
import "github.com/miekg/dns"
@ -157,6 +158,11 @@ func main() {
// make this the main loop in an attempt to figure out the crashes
// do not change this until the GUI is stable
gui.StartNewWindow(false, "Cloud Control Panel", gui.Yaxis, showSplashBox)
if (os.Getenv("DISPLAY") == "") {
log.Println("gui.StartNewWindow() END DISPLAY =", os.Getenv("DISPLAY"))
log.Println("gui.StartNewWindow() Probably this died because your DISPLAY is not set")
}
log.Println("gui.StartNewWindow() END")
}
//
@ -189,7 +195,7 @@ func init() {
sigChan = make(chan os.Signal, 3)
if runtime.GOOS != "windows" {
log.Println("loadConfigFile() OS: Windows")
signal.Notify(sigChan, os.Syscall.SIGUSR1)
signal.Notify(sigChan, syscall.SIGUSR1)
}
}