-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
The -w flag won't open a browser from WSL #6938
Comments
Thanks for reporting and sorry for the nuisance. If you run the command as What if you do |
Does not open, I have to copy the link manually. The link is not clickable because it misses the protocol. |
THis does work! |
Should I add |
Yes, but I'm wondering what gh on your system defaulted to when you did not set GH_BROWSER. You can also do: |
It was empty. |
Thank you, @mislav. 🙇♂️ |
I was struggling on why it cannot find ❯ wslsys
Release Install Date: Sun Oct 1 22:25:10 -05 2023
Branch: ni_release
Build: 22621
Full Build: 22621.1.amd64fre.ni_release.220506-1250
Display Scaling: 1
Locale (Windows): en_US
Theme (Windows): dark
Uptime (Windows): 6d 1h 39m
Version (WSL): 2
Uptime (WSL): 0d 1h 25m
Release: Ubuntu 22.04.3 LTS
Kernel: Linux 5.15.133.1-microsoft-standard-WSL2
Packages: 720
IPv4 Address: 172.31.173.166
System Type (Windows): Desktop
SystemD Status: enabled This was for me the solution: and also this issue thread #826 might help solving any questions. |
Describe the bug
I'm running
gh
in Ubuntu in WSL in Windows 10.Originally, it was able to open the browser on the host OS, but now it won't.
When I do commands like
gh pr create -w
orgh repo view -w
, it shows no error but the browser won't open a page. I have to scroll the console up, copy the URL fromgh
output and paste it into the browser's URL bar.gh version 2.14.4 (2022-08-10)
gh
is authenticated.$BROWSER
is empty.wslview https://github.com/cli/cli
does open a page in the broswer in the host OS successfully.The text was updated successfully, but these errors were encountered: