Skip to content

Conversation

@olivierlemasle
Copy link

This sets TMPDIR to a tmpfs directory shared between the Flatpak vscode and the host, which fixes an issue when using Devcontainers features.

Fixes #605

TMPDIR is used by Node.js os.tmpdir() which is used by devcontainers CLI.

Setting TMPDIR to $XDG_RUNTIME_DIR/app/$FLATPAK_ID is proposed in Flatpak documentation.

This sets TMPDIR to a tmpfs directory shared between the Flatpak vscode
and the host, which fixes an issue when using Devcontainers features.

Note: TMPDIR is used by Node.js [`os.tmpdir()`](https://nodejs.org/api/os.html#ostmpdir)
which is used by [devcontainers CLI](https://github.com/devcontainers/cli/tree/eda6cf892e1440d1fbb454d6e457a2343113ded6).
@flathubbot
Copy link
Contributor

🚧 Test build enqueued.

@flathubbot
Copy link
Contributor

🚧 Started test build.

@flathubbot
Copy link
Contributor

Test build succeeded. To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/200866/com.visualstudio.code.flatpakref

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.

Cannot build devcontainers features

2 participants