Skip to content

Conversation

@rblalock
Copy link

Summary

  • Fixes the open command not found error on Linux systems
  • Uses platform-appropriate commands: open on macOS, start on Windows, xdg-open on Linux

Problem

The CLI was hardcoded to use the open command, which is macOS-specific. On Linux, this results in:

ShellError: Failed with exit code 1
stderr: "bun: command not found: open\n"

Solution

Added platform detection using process.platform to select the appropriate command:

  • darwin (macOS): open
  • win32 (Windows): start
  • Linux/other: xdg-open

The 'open' command is macOS-specific. This change uses the appropriate
command for each platform: 'open' on macOS, 'start' on Windows, and
'xdg-open' on Linux.
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