microsoft / microsoft/WSL

WSL2 + Ubuntu 22.04.1: xdg-open: no method available for opening "https://www...."

Open
#8,892 27 comments 20 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Version

Microsoft Windows [´veersion 10.0.19042.1706]

### WSL Version

- [X] WSL 2
- [ ] WSL 1

### Kernel Version

5.10.102.1

### Distro Version

Ubuntu 22.04.1

### Other Software

Try
xdg-open https://microsoft.com

result
/usr/bin/xdg-open: 882: www-browser: not found
/usr/bin/xdg-open: 882: links2: not found
/usr/bin/xdg-open: 882: elinks: not found
/usr/bin/xdg-open: 882: links: not found
/usr/bin/xdg-open: 882: lynx: not found
/usr/bin/xdg-open: 882: w3m: not found
xdg-open: no method available for opening 'https://microsoft.com'

### Repro Steps

Try
xdg-open https://microsoft.com

### Expected Behavior

Open windows browser

### Actual Behavior

/usr/bin/xdg-open: 882: www-browser: not found
/usr/bin/xdg-open: 882: links2: not found
/usr/bin/xdg-open: 882: elinks: not found
/usr/bin/xdg-open: 882: links: not found
/usr/bin/xdg-open: 882: lynx: not found
/usr/bin/xdg-open: 882: w3m: not found
xdg-open: no method available for opening 'https://microsoft.com'

### Diagnostic Logs

/usr/bin/xdg-open: 882: www-browser: not found
/usr/bin/xdg-open: 882: links2: not found
/usr/bin/xdg-open: 882: elinks: not found
/usr/bin/xdg-open: 882: links: not found
/usr/bin/xdg-open: 882: lynx: not found
/usr/bin/xdg-open: 882: w3m: not found
xdg-open: no method available for opening 'https://microsoft.com'

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `xdg-open https://microsoft.com` under WSL 2 on Ubuntu 22.04.1, then inspect the reported `/usr/bin/xdg-open` entry point and its browser lookup behavior. Compare the result with the expected Windows-browser integration; done means the command opens the Windows browser or the supported limitation and workaround are clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, ubuntu
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.