Skip to content

fix: use xdg-open on Linux to open browser#1

Open
Jusophos wants to merge 1 commit intosemos-labs:mainfrom
Jusophos:fix/linux-xdg-open
Open

fix: use xdg-open on Linux to open browser#1
Jusophos wants to merge 1 commit intosemos-labs:mainfrom
Jusophos:fix/linux-xdg-open

Conversation

@Jusophos
Copy link
Copy Markdown

Summary

  • Bun.spawn(["open", ...]) only works on macOS. On Linux, the equivalent is xdg-open.
  • Adds a process.platform check to use xdg-open on Linux and open on macOS.
  • Fixes OAuth sign-in flow and meeting link opening on Linux.

Files changed

  • src/auth/oauth.ts — OAuth login and permission upgrade flows (2 places)
  • src/ui/DetailsPanel.tsx — opening meeting links (1 place)

Test plan

  • Tested on Linux (Arch, Hyprland/Wayland) — browser opens correctly for Google OAuth
  • macOS — should remain unchanged (uses open as before)

🤖 Generated with Claude Code

`open` is macOS-only. On Linux, `xdg-open` is the standard way to open
URLs in the default browser. This fixes Google OAuth sign-in and meeting
link opening on Linux systems.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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