Skip to content

Commit

Permalink
Ensuring that zenity test is after setting path to assets
Browse files Browse the repository at this point in the history
  • Loading branch information
mki1967 committed Jan 28, 2018
1 parent 718ede1 commit 93e7ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion zenity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93e7ac4

Please sign in to comment.