Skip to content

Add cross-platform URL open helper#582

Open
1aifanatic wants to merge 1 commit intogarrytan:mainfrom
1aifanatic:contribution-1-open-url
Open

Add cross-platform URL open helper#582
1aifanatic wants to merge 1 commit intogarrytan:mainfrom
1aifanatic:contribution-1-open-url

Conversation

@1aifanatic
Copy link
Copy Markdown

Summary

Adds a new �in/gstack-open-url script that opens URLs in the default browser across macOS, Linux, and Windows platforms.

Changes

  • Uses open on macOS
  • Uses xdg-open on Linux
  • Uses start on Windows (Cygwin/MinGW/MSYS)
  • Supports GSTACK_OPEN_CMD env override for custom handlers

Motivation

This fixes the hardcoded open command that only worked on macOS, enabling the Boil the Lake and Search Before Building intro flows to work on all supported platforms.

Testing

  • Tested on Windows 11 with Git Bash
  • Script follows the same pattern as gstack-config

Closes TODOS.md item: Cross-platform URL open helper

Adds a new bin/gstack-open-url script that opens URLs in the default
browser across macOS, Linux, and Windows platforms.

- Uses 'open' on macOS
- Uses 'xdg-open' on Linux
- Uses 'start' on Windows
- Supports GSTACK_OPEN_CMD env override for custom handlers

This fixes the hardcoded 'open' command that only worked on macOS,
enabling the Boil the Lake and Search Before Building intro flows
to work on all supported platforms.

Closes TODOS.md item: Cross-platform URL open helper
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