Message380986
I concur with Terry.
Actually, registering the browser is not necessary for using it. Set the environment variable BROWSER and use your favorite browser. The following example uses curl (which is not registered as in the webbrowser module) as a browser:
BROWSER=curl python3 -m webbrowser -n http://example.org
The registry in the webbrowser module is used for the case if you use Python on some non-mainstream platform which does not have OS-level infrastructure for running default browser or settings are empty. I.e. it is not Windows or macOS and does not support OpenDesktop and Posix specifications, and BROWSER is not set. If you have such marginal system and use marginal browser on it, it is worth to spend some time for setting BROWSER or configuring www-browser, x-www-browser, xdg-open, etc. |
|
Date |
User |
Action |
Args |
2020-11-14 20:00:35 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, python-dev, saiansh2525 |
2020-11-14 20:00:35 | serhiy.storchaka | set | messageid: <1605384035.69.0.790552044897.issue42330@roundup.psfhosted.org> |
2020-11-14 20:00:35 | serhiy.storchaka | link | issue42330 messages |
2020-11-14 20:00:35 | serhiy.storchaka | create | |
|