Skip to content

When FireFox is installed as a Flatpak but not a snap, webbrowser fails to detect it #124921

@Scripter17

Description

@Scripter17

Bug report

Bug description:

I have my default browser set to FireFox installed as a Flatpak, and the /bin/firefox and /usr/bin/firefox executables that tell you to install FireFox as a snap exist (though I'm not sure if that's important).

Under this configuration, I need to pass BROWSER=/var/lib/flatpak/exports/bin/org.mozilla.firefox as an environment variable to make the webbrowser module open URLs in FireFox. Without the environemnt variable webbrowser does nothing, so maybe it's running the "install as snap" executables?

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-linuxstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions