Comparing version 5.4.0 to 5.5.0
@@ -53,3 +53,4 @@ 'use strict'; | ||
} else { | ||
cmd = process.platform === 'android' ? 'xdg-open' : path.join(__dirname, 'xdg-open'); | ||
const useSystemXdgOpen = process.versions.electron || process.platform === 'android'; | ||
cmd = useSystemXdgOpen ? 'xdg-open' : path.join(__dirname, 'xdg-open'); | ||
} | ||
@@ -56,0 +57,0 @@ |
{ | ||
"name": "opn", | ||
"version": "5.4.0", | ||
"version": "5.5.0", | ||
"description": "A better node-open. Opens stuff like websites, files, executables. Cross-platform.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -5,3 +5,5 @@ # opn | ||
If need this for Electron, use [`shell.openItem()`](https://electronjs.org/docs/api/shell#shellopenitemfullpath) instead. | ||
#### Why? | ||
@@ -8,0 +10,0 @@ |
31985
77
91