Skip to content

fix: open URLs on Windows #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025
Merged

fix: open URLs on Windows #116

merged 1 commit into from
May 20, 2025

Conversation

fioan89
Copy link
Collaborator

@fioan89 fioan89 commented May 20, 2025

The URLs on Windows failed to be opened because the cmd executed via ProcessExecutor was not correctly constructed. We were calling exec("cmd", "start \"$url\"") but in Windows /c is also needed to the cmd.

We originally used native commands to open URLs because Toolbox didn’t support it. Now that LocalDesktopManager provides an API for launching the browser, we no longer need to fix the command-line logic — we can just use the Toolbox API instead.

The URLs on Windows failed to be opened because the cmd executed via
ProcessExecutor was not correctly constructed. We were calling `exec("cmd", "start \"$url\"")`
but in Windows `/c` is also needed to the `cmd`.

We originally used native commands to open URLs because Toolbox didn’t support it.
Now that LocalDesktopManager provides an API for launching the browser, we no longer need to fix
the command-line logic — we can just use the Toolbox API instead.
@fioan89 fioan89 requested review from matifali and f0ssel May 20, 2025 20:55
@fioan89
Copy link
Collaborator Author

fioan89 commented May 20, 2025

I've tested this fix on macOS and Windows. Seems to be fine now.

@fioan89 fioan89 merged commit 72c60f6 into main May 20, 2025
5 checks passed
@fioan89 fioan89 deleted the fix-url-links-in-windows branch May 20, 2025 21:15
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.

2 participants