Skip to content

[desktop-lite] Entrypoint script does not use VNC_RESOLUTION defined by containerEnv #945

Description

@Huoleit

Summary

As written in the desktop-init.sh , the entrypoint script will use user-defined VNC_RESOLUTION if provided. But even if I include the env definition in both containerEnv and remoteEnv, the entrypoint script always uses the default setting.

Screenshot

Screenshot from 2024-04-15 15-10-01

Steps to reproduce

.devcontainer used.

{
	"name": "Ubuntu",
	"image": "mcr.microsoft.com/devcontainers/base:jammy",
	"features": {
		"ghcr.io/devcontainers/features/desktop-lite:1": {}
	},
	"containerEnv": {
		"VNC_RESOLUTION": "1920x1080x32"
	},
	"remoteEnv": {
		"VNC_RESOLUTION": "1920x1080x32"
	},
	"forwardPorts": [
		5901,
		6080
	],
	"containerUser": "vscode"
}

Log

[2024-04-15T13:06:53.341Z] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=/home/docker_test,target=/workspaces/docker_test --mount type=volume,src=vscode,dst=/vscode -e VNC_RESOLUTION=1920x1080x32 -u vscode --init --entrypoint /bin/sh vsc-docker_test-07c641cc479b026b86df51ee3bad1935608dd8988b8d00265001f60892599974-features-uid -c echo Container started

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions