From f72db3d25c661c1fecbd1305c3c7f5bf07e51755 Mon Sep 17 00:00:00 2001 From: Nicolas Oulianov Date: Thu, 7 Nov 2024 13:59:28 +0100 Subject: [PATCH] Set XDG_RUNTIME_DIR --- pkg/diambra/render.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/diambra/render.go b/pkg/diambra/render.go index 64bc95f..f4d1ca3 100644 --- a/pkg/diambra/render.go +++ b/pkg/diambra/render.go @@ -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 }