diff --git a/main.go b/main.go index 8c8e4ad..a85245d 100644 --- a/main.go +++ b/main.go @@ -107,6 +107,9 @@ func main() { pathToAssets := pathToAssets() PathToAssets = pathToAssets + // test for zenity + ZenityTest() + // fragments from https://github.com/go-gl/examples/blob/master/gl41core-cube/cube.go if err := glfw.Init(); err != nil { diff --git a/zenity.go b/zenity.go index ef60207..357e4e6 100644 --- a/zenity.go +++ b/zenity.go @@ -8,7 +8,7 @@ import ( // Assume that zenity is available var IsZenity = true -func init() { +func ZenityTest() { out, err := RunScript("zenity-test.bash") if err != nil { IsZenity = false