From 1007991255dcf996d3b1e782fa6d515f210917fe Mon Sep 17 00:00:00 2001 From: Chen Pan Date: Sun, 17 May 2026 23:35:13 +0800 Subject: [PATCH] Update devcontainer configuration and Dockerfile dependencies (#1516) --- .devcontainer/Dockerfile | 2 ++ .devcontainer/devcontainer.json | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index c6bea38..3eda663 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -23,4 +23,6 @@ RUN dnf update -y && dnf install -y \ webkitgtk6.0-devel \ libsecret-devel \ libproxy-devel \ + gtksourceview5-devel \ + glib-networking \ clangd diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4f9b93c..c5701d3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,6 +3,10 @@ "build": { "dockerfile": "Dockerfile" }, + "runArgs": [ + "--device=/dev/dri", + "--network=host" + ], "features": { "ghcr.io/devcontainers/features/common-utils:2": { "installZsh": "false", @@ -25,9 +29,12 @@ "containerEnv": { "WAYLAND_DISPLAY": "${localEnv:WAYLAND_DISPLAY}", "XDG_RUNTIME_DIR": "${localEnv:XDG_RUNTIME_DIR}", - "XDG_SESSION_TYPE": "${localEnv:XDG_SESSION_TYPE}" + "XDG_SESSION_TYPE": "${localEnv:XDG_SESSION_TYPE}", + + "DBUS_SYSTEM_BUS_ADDRESS": "unix:path=/var/run/dbus/system_bus_socket" }, "mounts": [ - "source=${localEnv:XDG_RUNTIME_DIR},target=${localEnv:XDG_RUNTIME_DIR},type=bind,consistency=cached" + "source=${localEnv:XDG_RUNTIME_DIR},target=${localEnv:XDG_RUNTIME_DIR},type=bind,consistency=cached", + "source=/var/run/dbus/system_bus_socket,target=/var/run/dbus/system_bus_socket,type=bind,consistency=cached" ] } \ No newline at end of file