Skip to content

Spawn tart with an inherited environment and its bin dir on PATH#136

Open
DDRBoxman wants to merge 1 commit into
framna-dk:mainfrom
coalharbourgroup:softnet-path
Open

Spawn tart with an inherited environment and its bin dir on PATH#136
DDRBoxman wants to merge 1 commit into
framna-dk:mainfrom
coalharbourgroup:softnet-path

Conversation

@DDRBoxman

Copy link
Copy Markdown

Description

Inherit the launching process's environment instead of replacing it, overlay TART_HOME, and prepend the directory of the located tart binary to PATH. tart's helpers are installed alongside tart, so reusing the path we already resolve to launch tart makes them discoverable without hardcoding any install location.

Motivation and Context

tart was spawned with a replaced environment containing at most TART_HOME, so the child process had no usable PATH. tart execs helper binaries by name and resolves them through PATH — most visibly softnet for --net-softnet, which failed with InitializationFailed("softnet not found in PATH") when Tartelet ran as a GUI app (whose launchd PATH omits e.g. the Homebrew bin directory).

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

tart was spawned with a replaced environment containing at most TART_HOME, so
the child process had no usable PATH. tart execs helper binaries by name and
resolves them through PATH — most visibly `softnet` for `--net-softnet`, which
failed with InitializationFailed("softnet not found in PATH") when Tartelet ran
as a GUI app (whose launchd PATH omits e.g. the Homebrew bin directory).

Inherit the launching process's environment instead of replacing it, overlay
TART_HOME, and prepend the directory of the located tart binary to PATH. tart's
helpers are installed alongside tart, so reusing the path we already resolve to
launch tart makes them discoverable without hardcoding any install location.
@DDRBoxman DDRBoxman requested a review from simonbs as a code owner June 26, 2026 00:42
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