Skip to content

Doesn't work with Electron #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Rush opened this issue Oct 26, 2018 · 1 comment
Closed

Doesn't work with Electron #107

Rush opened this issue Oct 26, 2018 · 1 comment

Comments

@Rush
Copy link
Contributor

Rush commented Oct 26, 2018

Please add an option to use system-wide xdg-open instead of a bundled xdg-open.

node:7178) UnhandledPromiseRejectionWarning: Error: spawn /electron/build/path/out/xdg-open ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
    at onErrorNT (internal/child_process.js:406:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
@sindresorhus
Copy link
Owner

Why are you using this package with Electron? Electron already has a native method for opening a file: https://electronjs.org/docs/api/shell#shellopenitemfullpath

@sindresorhus sindresorhus changed the title Doesn't work with electron Doesn't work with Electron Oct 29, 2018
jkawamoto added a commit to GooBox/file-share-desktop that referenced this issue Mar 9, 2019
Switch to shell API from opn package according to this comment
sindresorhus/open#107 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants