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:
parent
dc4d1549b7
commit
fec14f2ef2
10
main.go
10
main.go
|
@ -5,7 +5,8 @@ import "os"
|
||||||
import "time"
|
import "time"
|
||||||
import "reflect"
|
import "reflect"
|
||||||
import "os/signal"
|
import "os/signal"
|
||||||
// import "os/syscall"
|
import "syscall"
|
||||||
|
import "runtime"
|
||||||
|
|
||||||
// this is the king of dns libraries
|
// this is the king of dns libraries
|
||||||
import "github.com/miekg/dns"
|
import "github.com/miekg/dns"
|
||||||
|
@ -157,6 +158,11 @@ func main() {
|
||||||
// make this the main loop in an attempt to figure out the crashes
|
// make this the main loop in an attempt to figure out the crashes
|
||||||
// do not change this until the GUI is stable
|
// do not change this until the GUI is stable
|
||||||
gui.StartNewWindow(false, "Cloud Control Panel", gui.Yaxis, showSplashBox)
|
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)
|
sigChan = make(chan os.Signal, 3)
|
||||||
if runtime.GOOS != "windows" {
|
if runtime.GOOS != "windows" {
|
||||||
log.Println("loadConfigFile() OS: Windows")
|
log.Println("loadConfigFile() OS: Windows")
|
||||||
signal.Notify(sigChan, os.Syscall.SIGUSR1)
|
signal.Notify(sigChan, syscall.SIGUSR1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue