Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 676d0fa

Browse files
committed
setup DISPLAY variable at startup
1 parent a099ccb commit 676d0fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ func (p program) run() {
152152
os.Setenv("LD_LIBRARY_PATH", strings.Join(extraPaths, ":")+":"+os.Getenv("LD_LIBRARY_PATH"))
153153
}
154154

155+
// Blindly set DISPLAY env variable to default
156+
os.Setenv("DISPLAY", ":0")
157+
155158
files, err := ioutil.ReadDir(sketchFolder)
156159

157160
if err == nil {

0 commit comments

Comments
 (0)