From f5c8ae9323547092a80c609a704c052d63287cf3 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Fri, 30 May 2025 01:50:05 +0000 Subject: [PATCH] fix(devcontainer): :zap: use xhost to allow qemu to run inside the container I did this because on every reboot xauth directory was changing, and had to rebuild the container. --- .devcontainer/devcontainer.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 13146474..d13653a3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -25,17 +25,13 @@ } }, // From this line below are for qemu, so not that important. + "initializeCommand": "xhost +local:docker", // "xhost -local:docker" to disable "mounts": [ { "source": "/tmp/.X11-unix", "target": "/tmp/.X11-unix", "type": "bind" }, - { - "source": "${localEnv:XAUTHORITY}", - "target": "/home/vscode/.Xauthority", - "type": "bind" - }, { "source": "/run/user/1000/pulse/native", "target": "/run/user/1000/pulse/native",