mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 09:26:42 +00:00
Fix opn patch for some strange edge case
Change-type: patch
This commit is contained in:
parent
0c3790bc45
commit
88b7b9273a
@ -1,14 +1,15 @@
|
||||
diff --git a/node_modules/opn/index.js b/node_modules/opn/index.js
|
||||
index 13dcb66..16c5b2a 100644
|
||||
index 13dcb66..0f0c1df 100644
|
||||
--- a/node_modules/opn/index.js
|
||||
+++ b/node_modules/opn/index.js
|
||||
@@ -52,6 +52,9 @@ module.exports = function (target, opts) {
|
||||
@@ -51,7 +51,9 @@ module.exports = function (target, opts) {
|
||||
if (opts.app) {
|
||||
cmd = opts.app;
|
||||
} else {
|
||||
cmd = path.join(__dirname, 'xdg-open');
|
||||
- cmd = path.join(__dirname, 'xdg-open');
|
||||
+ cmd = process.pkg
|
||||
+ ? path.join(path.dirname(process.execPath), 'xdg-open-402')
|
||||
+ : path.join(__dirname, 'xdg-open');
|
||||
}
|
||||
|
||||
|
||||
if (appArgs.length > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user