在Windows 10上安装Ubuntu,运行标准升级并安装xdg-utils之后,我似乎无法使用xdg-open。
我在桌面上创建了一个测试文件夹,其中包含一个空白的html文件/Desktop/test/index.html。
在测试目录中使用xdg-open返回此错误:
$ xdg-open index.html
Start : This command cannot be run due to the error: The
system cannot find the file specified.
At line:1 char:1
+ Start "/mnt/c/Users/Y/desktop/test/index.html"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Pro
cess], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Micros
oft.PowerShell.Commands.StartProcessCommand
这是什么原因以及任何解决方案?