more devcontainer fixes

This commit is contained in:
2025-09-05 16:12:15 +02:00
parent 63f44b0137
commit e23d4202c7
2 changed files with 16 additions and 7 deletions

View File

@@ -14,11 +14,11 @@
],
"workspaceMount": "source=${localWorkspaceFolder},target=/${localWorkspaceFolderBasename},type=bind",
"workspaceFolder": "/${localWorkspaceFolderBasename}",
// for linux
"containerEnv": {
// Uncomment to allow the container to access the X server on the host e.g. to run Rviz and other GUI tools
"DISPLAY": "${localEnv:DISPLAY}",
"TZ": "Europe/Amsterdam"
"remoteEnv": {
"DISPLAY": "${localEnv:DISPLAY}",
"TZ": "Europe/Amsterdam",
"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
"XDG_RUNTIME_DIR": "/run/user/1000"
},
"mounts": [
// Uncomment to allow the container to access the X server on the host e.g. to run Rviz and other GUI tools
@@ -38,6 +38,11 @@
"source": "/dev/dri",
"target": "/dev/dri",
"type": "bind"
},
{
"source": "/run/user/1000/bus",
"target": "/run/user/1000/bus",
"type": "bind"
}
],
"customizations": {