Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add easy way to configure to use wslview to use the Hosts Browser in GWSL Distro Tools. #141

Open
LiamKarlMitchell opened this issue Mar 28, 2022 · 0 comments

Comments

@LiamKarlMitchell
Copy link

Things I tried:

export the BROWSER variable in bashrc or zshrc.

Use default host browser

export BROWSER=wslview

Running
xdg-settings get default-web-browser

Shows me
firefox.desktop

After running this.
And selecting wslview

It did not update for xdg.
Neither did this.

But after I removed the BROWSER export and I ran the command to set default it worked.

Was able to test on an xdg app by running

xdg-open https://github.com

This app comes from the xdg-utils package.

Solution:
Create the wslview.desktop according to: wslutilities/wslu#214

xdg-settings set default-web-browser wslview.desktop
update-alternatives --config x-www-browser

But I'm not sure if this also sets it for other potential usages of opening URL in default browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant