[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

[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: > >

[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