Git Product home page Git Product logo

Comments (1)

metcalfc avatar metcalfc commented on September 22, 2024

Thanks for this. We'll figure out something native. In the meanwhile one workaround is to use the very nice: https://github.com/4U6U57/wsl-open. Its basically a bash script that can use/mimic xdg-open.

As always you should read the script just to make sure you trust what its going to be doing: https://github.com/4U6U57/wsl-open/blob/master/wsl-open.sh

# Make a bin folder in your home directory
mkdir ~/bin

# Add the bin folder to your PATH in your bashrc
echo '[[ -e ~/bin ]] && PATH=$PATH:~/bin' >> .bashrc

# Download the script to a file named 'wsl-open'
curl -o ~/bin/wsl-open https://raw.githubusercontent.com/4U6U57/wsl-open/master/wsl-open.sh

Now you have two options. Easy or Linux. The easy way is to link ~/bin/xdg-open to ~/bin/wsl-open. This worked for me for a long time. The better way that is more work and takes more space is to actually install the packages that include xdg-open. In Ubuntu that looks like:

sudo apt-get install -y xdg-utils

# now register browser links with wsl-open
wsl-open -w

Hopefully that unblocks you.

from cloud-integration-beta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.