This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rayluo
Recipients rayluo
Date 2021-08-05.18:58:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Launching Chrome on Linux from command line:

    $ export BROWSER=google-chrome; python -m webbrowser

    It can successfully launch Chrome with the specified web page opened in a new tab.
    And the console command line finishes BEFORE the web page being fully loaded in the browser. That is the desirable behavior.

Launching Edge on Linux from command line:

    $ export BROWSER=microsoft-edge; python -m webbrowser

    The command line hangs until the Edge window is closed.

That hanging symptom can be resolved by writing a deliberate script to webbrowser.register("...", None, webbrowser.BackgroundBrowser("microsoft-edge")) and then use that registered browser. But it was not obvious, and it took trial-and-error to reach that solution.

Could it be possible to have the "BROWSER=microsoft-edge; python -m webbrowser" work out of the box, without hanging?

Is it because Edge is not currently predefined and handled inside It seems not an easy decision to add new browser into, though, based on the 2nd and 3rd comments in this old issue:
Date User Action Args
2021-08-05 18:58:31rayluosetrecipients: + rayluo
2021-08-05 18:58:31rayluosetmessageid: <>
2021-08-05 18:58:31rayluolinkissue44844 messages
2021-08-05 18:58:30rayluocreate