fix(devcontainer): use xhost to allow qemu to run inside the container
Some checks failed
Build OS / Build Cross-Compiler & Toolchain (push) Has been cancelled
Build OS / Analyze (c-cpp) (push) Has been cancelled
Build OS / Build OS (push) Has been cancelled

I did this because on every reboot xauth directory was changing, and had to rebuild the container.
This commit is contained in:
EnderIce2 2025-05-30 01:50:05 +00:00
parent 154d857c2e
commit f5c8ae9323
Signed by: enderice2
GPG Key ID: FEB6B8A8507BA62E

View File

@ -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",