sindresorhus/opn


Do you want to work on this issue?
You can request for a bounty in order to promote it!
I cann't understand. Use powershell in wsl to open the default? #270
bigbigDreamer posted onGitHub
https://github.com/sindresorhus/open/blob/7579417bbd3b3fc155b10f9b9b2eb71381e13e9a/index.js#L123
command = isWsl ?
`${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` :
`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
Now I modified the source file in node modules and used xdg-open
can work normal.
Delete || (isWsl && !isDocker())
, because wsl
also is linux
plateform.
But, Note: You should give your current wsl system login user root privileges.
#269