mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-30 02:28:51 +00:00
f44c2b777f
Resolves: #1657 Change-type: patch
16 lines
645 B
Diff
16 lines
645 B
Diff
diff --git a/node_modules/open/index.js b/node_modules/open/index.js
|
|
index 5fe49ad..c9194ba 100644
|
|
--- a/node_modules/open/index.js
|
|
+++ b/node_modules/open/index.js
|
|
@@ -10,7 +10,9 @@ const pAccess = promisify(fs.access);
|
|
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`
|