Skip to content

macOS GUI hangs (100% CPU) due to missing $PATH #166

Description

@hermannsorgel

Issue:
When launching the GUI app normally via macOS Finder or Spotlight and setting passcommand to a Homebrew script (e.g., /opt/homebrew/bin/passage vykar), the app hangs. It spawns a bash process that consumes 100% CPU.

However, the app works perfectly if:

  • it is launched directly from zsh or fish via the terminal, or
  • the config includes passphrase instead of passcommand.

Probable cause:
macOS GUI apps launch with a minimal $PATH that excludes /opt/homebrew/bin. While the passage script successfully starts due to the absolute path, it hangs in an infinite loop or error state because of missing dependencies (like age) without the Homebrew path.

Suggestion:
Explicitly append /opt/homebrew/bin:/usr/local/bin to the $PATH environment variable inside the app before it spawns the shell command.

macOS 26.5.2
vykar 0.18.0


Just started testing Vykar: it is so good! Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions