mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 15:32:22 +00:00
7dfb7474f5
This also drops support for Node 14 Change-type: major
17 lines
549 B
Diff
17 lines
549 B
Diff
diff --git a/node_modules/open/index.js b/node_modules/open/index.js
|
|
index 13147d0..ff161dd 100644
|
|
--- a/node_modules/open/index.js
|
|
+++ b/node_modules/open/index.js
|
|
@@ -10,7 +10,10 @@ const pAccess = promisify(fs.access);
|
|
const pReadFile = promisify(fs.readFile);
|
|
|
|
// 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');
|
|
+
|
|
|
|
/**
|
|
Get the mount point for fixed drives in WSL.
|