Skip to content

Commit

Permalink
Set XDG_RUNTIME_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
oulianov authored and discordianfish committed Nov 8, 2024
1 parent 113b486 commit f72db3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/diambra/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func configureX11(config *EnvConfig, c *container.Container) error {
)
c.Hostname = config.Hostname
c.Env = append(c.Env, "DISPLAY="+os.Getenv("DISPLAY"))
c.Env = append(c.Env, "XDG_RUNTIME_DIR=/tmp/xdg") // avoid the XDG_RUNTIME_DIR error

c.IPCMode = "host" // We need to enable IPC to avoid "X Error: BadShmSeg"
return nil
}
Expand Down

0 comments on commit f72db3d

Please sign in to comment.