Skip to content

Wrong web browser opened when clicking links #45129

@NobodysNightmare

Description

@NobodysNightmare

Preflight Checklist

Electron Version

33.3.0

What operating system(s) are you using?

Ubuntu

Operating System Version

24.04

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Links open in the configured default browser

Actual Behavior

Links open in Chrome/Chromium instead, regardless of the configured default browser

Testcase Gist URL

https://gist.github.com/Viicos/d77af018be1b7b27294a74c378731992

Additional Information

This is a re-open of #42611 (by @bittylicious) after @Viicos was so kind to add a repro gist (adding a gist was an absolute requirement by the Electron team on the original issue).

The original issue already well pointed out that this issue seems to be new with Ubuntu 24 and wasn't present on 22.

Workarounds presented in in the original issue:

  • Uninstalling all chrome/chromium (then e.g. a firefox will be correctly opened)
  • Adding the following to ~/.local/share/applications/mimeapps.list
[Default Applications]
x-scheme-handler/http=firefox_firefox.desktop
x-scheme-handler/https=firefox_firefox.desktop

There are some additional details available in the original issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions