2020-03-11 01:12:07 +00:00
|
|
|
diff --git a/node_modules/open/index.js b/node_modules/open/index.js
|
2020-08-13 07:56:32 +00:00
|
|
|
index 3bf5373..e042b64 100644
|
2020-03-11 01:12:07 +00:00
|
|
|
--- a/node_modules/open/index.js
|
|
|
|
+++ b/node_modules/open/index.js
|
2020-08-13 07:56:32 +00:00
|
|
|
@@ -11,7 +11,9 @@ const pAccess = promisify(fs.access);
|
2020-03-11 01:12:07 +00:00
|
|
|
const pExecFile = promisify(childProcess.execFile);
|
|
|
|
|
|
|
|
// Path to included `xdg-open`.
|
|
|
|
-const localXdgOpenPath = path.join(__dirname, 'xdg-open');
|
|
|
|
+const localXdgOpenPath = process.pkg
|
|
|
|
+ ? path.join(path.dirname(process.execPath), 'xdg-open')
|
|
|
|
+ : path.join(__dirname, 'xdg-open');
|
|
|
|
|
|
|
|
// Convert a path from WSL format to Windows format:
|
|
|
|
// `/mnt/c/Program Files/Example/MyApp.exe` → `C:\Program Files\Example\MyApp.exe`
|