Skip to content

[Desktop-lite] desktop-init.sh drops entrypoint args due to heredoc variable expansion#1621

Merged
abdurriq merged 3 commits intodevcontainers:mainfrom
Mathiyarasy:dev/Mathi/desktopLite
Apr 14, 2026
Merged

[Desktop-lite] desktop-init.sh drops entrypoint args due to heredoc variable expansion#1621
abdurriq merged 3 commits intodevcontainers:mainfrom
Mathiyarasy:dev/Mathi/desktopLite

Conversation

@Mathiyarasy
Copy link
Copy Markdown
Contributor

@Mathiyarasy Mathiyarasy commented Apr 14, 2026

Fix: #1615

The desktop-lite feature's install.sh generates the entrypoint script desktop-init.sh using an unquoted heredoc (cat << EOF). At the end of this heredoc, $1 and $@ were not escaped, so they expanded to empty strings at install time. So any command passed to the container entrypoint was silently ignored.

@Mathiyarasy Mathiyarasy marked this pull request as ready for review April 14, 2026 06:41
@Mathiyarasy Mathiyarasy requested a review from a team as a code owner April 14, 2026 06:41
@Mathiyarasy Mathiyarasy changed the title [Desktop-lite] desktop-init.sh fails in the process replacement [Desktop-lite] desktop-init.sh drops entrypoint args due to heredoc variable expansion Apr 14, 2026
@abdurriq abdurriq merged commit 9f086c0 into devcontainers:main Apr 14, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[desktop-lite] Process replacement in entrypoint fails

2 participants