Repository navigation
Add an option to always use system xdg-open instead of bundled version - #138
deansheather wants to merge 2 commits into
Conversation
Is there no way of automatically detecting that? I would really prefer to keep the options to a minimum. |
|
There is a way of checking if bundled with It seems that this is a problem that's appeared a few times, however, with the exclusions for Electron and Webpack. I personally think that a configurable option will allow this package to work in many more environments/setups without changes being made to the package. |
Trying to import something that doesn't exist causes problems with Webpack. Any other way? Can you for example check properties on the
I don't disagree, but the option is useless if you don't directly control |
|
I don't believe there is any other way of checking if being run inside an nbin binary other than importing |
|
Created a pull request on nbin for |
|
Perhaps a better way would be to check if |
|
That does seem like a better idea actually. I've created a new PR to check if the bundled |
Adds a new option
useSystemXdgOpenwhich allows for always using the systemxdg-opencommand over the included version.This is neccessary in some environments when the package thinks it can execute the included version when it actually cannot. One example is when the package is included in a binary produced by a node.js binary compiler like nbin.