Skip to content

chore(org.flatpark.Spawn): update to 0.2.0 - #1571

Merged
jing2uo merged 1 commit into
mainfrom
chore/spawn-0.2.0
Nov 25, 2026
Merged

jing2uo merged 1 commit into
mainfrom
chore/spawn-0.2.0

Conversation

@jing2uo

@jing2uo jing2uo commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Updates the shared extension org.flatpark.Spawn to flatpark-spawn 0.2.0. Part of #1565.

What's new in 0.2.0

  • Host config file: an optional ~/.config/flatpark-spawn/config.yaml, read on the host:
    • use_login_shell_path, include_path and exclude_path decide where commands are looked up;
    • shims lists commands to put in every app's PATH as links that run on the host.
    • flatpark-spawn check reports problems in the file. Without the file, nothing changes.
  • Why shims: VS Code removes LD_PRELOAD before it starts its extension host and pty host, so the preload library never reaches the processes extensions run in. Programs like vscode-neovim also look for a command on disk before they run it. A shim covers both cases, e.g. shims: [nvim].
  • Fix: an absolute path the sandbox lacks under /usr, /bin, /sbin or /lib* (e.g. /usr/bin/nvim) now runs on the host instead of failing with ENOENT.
  • Fix: the exec hooks no longer allocate or use stdio, so a fork in a multithreaded process (Chromium, node-pty, Python) can't deadlock in them.
  • Change: flatpark-spawn check is now a subcommand. Use flatpark-spawn -- check to run a host command named check.

This PR: the pins and the metainfo release come from the entry's own resolve-update.sh piped into update-pins.mjs. They match flatpark-spawn's own packaging/ and the release's SHA256SUMS/SIZES.

Tested:

For testers of #1568: once this is merged and published, flatpak update brings 0.2.0 to the extension already installed from FlatPark.

Host config file with shims (commands VS Code's extension host and
programs that look for a file first can find and run on the host),
absolute paths under /usr, /bin, /lib forwarded, exec hooks safe after
fork in threaded processes. Part of #1565.
@jing2uo
jing2uo merged commit 13a9291 into main Nov 25, 2026
@jing2uo
jing2uo deleted the chore/spawn-0.2.0 branch November 25, 2026 07:29
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.

1 participant