Skip to content

Conversation

@crazy-max
Copy link
Member

@crazy-max crazy-max commented Aug 8, 2025

fixes #760

@crazy-max crazy-max requested a review from vvoland August 8, 2025 06:33
@crazy-max crazy-max marked this pull request as ready for review August 8, 2025 06:33
const envs = Object.assign({}, process.env, {
PATH: `${this.toolDir}:${process.env.PATH}`,
XDG_RUNTIME_DIR: (this.rootless && this.runDir) || undefined
XDG_RUNTIME_DIR: (this.rootless && this.runDir) || process.env.XDG_RUNTIME_DIR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't hurt, but actually it shouldn't even get to that point if runDir is not set?

if (!this.runDir) {
throw new Error('runDir must be set');
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes indeed, I'm reverting this change

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the docker-install-xdg branch from 37991d7 to 7f3d74b Compare August 8, 2025 08:11
@crazy-max crazy-max merged commit 2e23307 into docker:main Aug 8, 2025
90 checks passed
@crazy-max crazy-max deleted the docker-install-xdg branch August 8, 2025 08:26
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.

PATH and XDG_RUNTIME_DIR env variables are not set in rootless mode.

2 participants