Skip to content

Conversation

@phamour
Copy link

@phamour phamour commented Apr 30, 2025

typer.launch("/path/to/file", locate=True) didn't work as expected:

  • on Windows, it returned 127 without openning any explorer or browser
  • on macOS, it returned 0 with Finder session openned but located to hard drive's root

However, click.launch("/path/to/file", locate=True) did work well both on Windows and Linux.

The reason was not passing locate=True when calling click.launch in typer.launch.

Tested on Windows and macOS.

@svlandeg svlandeg added the bug Something isn't working label Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants