[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-02 Thread Guido F
Guido F added the comment: Understood, my mistake. I wonder if explorer.exe or any other general purpose open command is guaranteed to be available in all WSL distros. There’s also a consideration to be made on WSL1 vs WSL2 (only v2 ships an actual Linux kernel). For detection, there’re some o

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-02 Thread Steve Dower
Steve Dower added the comment: FWIW, I don't have wslview in the Debian distro I'm currently using. It does have wslpath though. Consistent detection and integration throughout CPython's standard library (unless we believe we need special build options too) is probably worth a python-dev di

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-02 Thread Guido F
Guido F added the comment: My code patch uses ‘wslview’, which is a binary that is injected into every WSL distro and forwards file open commands to windows. I detect WSL inspecting the kernel version, which includes WSL tagging. On Tue, Nov 2, 2021 at 3:05 PM Steve Dower wrote: > > Steve Do

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-02 Thread Steve Dower
Steve Dower added the comment: We don't formally support it yet. We probably need somebody to develop expertise in the emulation layer so that they can work with the Linux distro experts to make sure their distros are doing things properly. It has no relation at all to our Windows support (r

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Windows people, do we support running on WSL? Is there a buildbot running it? -- nosy: +terry.reedy stage: -> test needed versions: +Python 3.11 ___ Python tracker ___

[issue45589] webbrowser does not handle opens under Windows WSL properly

2021-10-23 Thread Guido F
New submission from Guido F : The 'webbrowser' module throws warnings and bad RC codes when running under Windows Subsystem for Linux (WSL). This causes libraries that depend on the 'webbrowser' module to mistakenly assume there's been an error opening a URL. An example of this behaviour can