Closed rgbygv closed 12 months ago
What will happen if you run xdg-open 'https://leetcode.cn/problems/longest-even-odd-subarray-with-threshold/'
?
xdg-open 'https://leetcode.cn/problems/longest-even-odd-subarray-with-threshold/'
wslpath: https://leetcode.cn/problems/longest-even-odd-subarray-with-threshold/: No such file or directory
位于命令管道位置 1 的 cmdlet Start-Process
请为以下参数提供值:
FilePath:
this will ask me to input a FilePath
if i input FilePath with "D:\CentBrowser\chrome.exe"
it will open chrome, but don't open url
root@vthe ~ [4]# xdg-open 'https://leetcode.cn/problems/longest-even-odd-suba
rray-with-threshold/'
wslpath: https://leetcode.cn/problems/longest-even-odd-subarray-with-threshold/: No such file or directory
位于命令管道位置 1 的 cmdlet Start-Process
请为以下参数提供值:
FilePath: "D:\CentBrowser\chrome.exe"
Apparently xdg-open
has some issues working under WSL.
Some helpful links:
Thanks for your help.
Yesterday I wanted to try leetgo open today
in wsl, and tried it for an hour, so reported it as a bug.
Thanks for your report.
I'll switch from github.com/pkg/browser
to github.com/cli/browser
, which supports wslview
command to open a URL from WSL in Windows.
After #241 merged, could you try the following steps?
xdg-utils
and all your browser linkswslu
package:
sudo add-apt-repository ppa:wslutilities/wslu
sudo apt update
sudo apt install wslu
wslview https://baidu.com
leetgo
:
go install github.com/j178/leetgo@master
leetgo open today
Thanks, it's work now!
leetgo debug
Leetgo version info :
Global config dir : /root/.config/leetgo Global config file : /root/.config/leetgo/config.yaml Project root : /root/leetcode Working dir : /root/leetcode Project config file : /root/leetcode/leetgo.yaml Project configuration:
Full configuration :
Debug log
Description
after install
xdg-utils
, and link browserleetgo open today
get weird output