Skip to content

Commit 68490b0

Browse files
committed
Fix xserver perms on linux
1 parent 885cbbc commit 68490b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

launcher/internal/container/sasm.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ func NewSasmContainer() (*LaunchableContainer, error) {
3131
if runtime.GOOS == "darwin" {
3232
c := exec.Command("xhost", "+localhost")
3333
c.Run()
34+
} else if runtime.GOOS == "linux" {
35+
c := exec.Command("xhost", "SI:localuser:root")
36+
c.Run()
3437
}
3538
})
3639
}

0 commit comments

Comments
 (0)