wslu
wslu copied to clipboard
Does not work with Browser Chooser 2
Background Information:
- Build: https://github.com/wslutilities/wslu/commit/d8fb31bab12b66deb06428fb58353493087a558b
- WSL: tested in Pengwin & Ubuntu 20.04
- Version:
Describe the bug Nothing appears when Windows has Browser Chooser 2 set as default browser
To Reproduce Set default in Windows settings.
Expected behavior Should open Browser Chooser window with options to select other browsers installed in Windows.
Hi,
Thanks for the report. I will check it this weekend.
Hi,
After some testing, this related to the upstream issue here: https://bitbucket.org/gmyx/browserchooser2/issues/47/cant-open-a-link-on-slack
EDIT: After some more testing, it is still not working it seems. I will try to update the logic of opening the protocol
Due to some upstream issue, I am pausing the fix for this: https://github.com/microsoft/WSL/issues/6565
And moving the target to 4.x.
After several more tests and inactivity on the Microsoft side, with limited resources, I won't fix this bug.
Thinking about solving this issue by providing alternative engine.
Hey, there! I seem to have the same issue. Are the following steps supposed to be enough to not have this issue with BrowserChooser2?
export BROWSER=wslview
export WSLVIEW_DEFAULT_ENGINE=cmd_explorer
xdg-open http://www.google.com
It's weird because it works if the default browser is something else, like Brave or Firefox. So I'm not sure the issue is indeed with wslview... But browser chooser definitely works when trying on Windows:
cmd.exe /c start www.google.com
powershell.exe Start http://www.google.com
explorer.exe http://www.google.com
For some reason start
won't work for browserchooser+wsl, but these do:
cmd.exe /c explorer http://www.google.com
powershell.exe explorer http://www.google.com
explorer.exe http://www.google.com
But then if you were to try skipping wslview and using export BROWSER=explorer.exe
you start having issues with special characters (e.g. ?
).
It's a real pickle. Can you shine a light if I'm ignoring some possible fix/solution?