diff --git a/features/src/linux-x11-forwarding/README.md b/features/src/linux-x11-forwarding/README.md index f169dcb..9e0da3e 100644 --- a/features/src/linux-x11-forwarding/README.md +++ b/features/src/linux-x11-forwarding/README.md @@ -16,7 +16,7 @@ Forward a local Linux host's X11 display into a development container. | Options Id | Description | Type | Default Value | |-----|-----|-----|-----| | x11Display | Set DISPLAY for X11 clients launched from the container. | string | :0 | -| softwareGL | Set LIBGL_ALWAYS_SOFTWARE for GPU compatibility. | string | 1 | +| softwareGL | Force Mesa software rendering with LIBGL_ALWAYS_SOFTWARE=1. | boolean | false | ## Linux host requirements diff --git a/features/src/linux-x11-forwarding/devcontainer-feature.json b/features/src/linux-x11-forwarding/devcontainer-feature.json index 609de15..96eb982 100644 --- a/features/src/linux-x11-forwarding/devcontainer-feature.json +++ b/features/src/linux-x11-forwarding/devcontainer-feature.json @@ -12,13 +12,9 @@ "description": "Set DISPLAY for X11 clients launched from the container." }, "softwareGL": { - "type": "string", - "default": "1", - "proposals": [ - "0", - "1" - ], - "description": "Set LIBGL_ALWAYS_SOFTWARE for GPU compatibility." + "type": "boolean", + "default": false, + "description": "Force Mesa software rendering with LIBGL_ALWAYS_SOFTWARE=1." } }, "containerEnv": { diff --git a/features/src/linux-x11-forwarding/install.sh b/features/src/linux-x11-forwarding/install.sh index 318df6f..914ff39 100755 --- a/features/src/linux-x11-forwarding/install.sh +++ b/features/src/linux-x11-forwarding/install.sh @@ -2,7 +2,7 @@ set -euo pipefail x11_display="${X11DISPLAY:-:0}" -software_gl="${SOFTWAREGL:-1}" +software_gl="${SOFTWAREGL:-false}" cat >/etc/profile.d/devcontainer-x11-gui.sh <