wslu icon indicating copy to clipboard operation
wslu copied to clipboard

Does not work with Browser Chooser 2

Open McDemigod opened this issue 3 years ago • 5 comments

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.

McDemigod avatar Jan 25 '21 19:01 McDemigod

Hi,

Thanks for the report. I will check it this weekend.

patrick330602 avatar Jan 28 '21 02:01 patrick330602

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

patrick330602 avatar Feb 18 '21 06:02 patrick330602

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.

patrick330602 avatar Feb 18 '21 07:02 patrick330602

After several more tests and inactivity on the Microsoft side, with limited resources, I won't fix this bug.

patrick330602 avatar Jul 01 '21 17:07 patrick330602

Thinking about solving this issue by providing alternative engine.

patrick330602 avatar Jul 16 '21 12:07 patrick330602

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?

isadoraq avatar Feb 03 '23 05:02 isadoraq