sindresorhus / open

Open stuff like URLs, files, executables. Cross-platform.
MIT License
3.18k stars 219 forks source link

On WSL, invoke `app` like on Linux #295

Closed kazarmy closed 1 year ago

kazarmy commented 1 year ago

This pr handles the app property on WSL the same as on Linux. The reason being that while one can invoke Windows PowerShell (or even a Windows browser) from the WSL shell, afaik one can't use Windows PowerShell or the Windows START command to run WSL binaries. They can be run directly from the WSL shell though like on Linux.

This pr also provides a way to fixes #293, namely by setting the app.name property to a WSL browser binary like google-chrome.