javascript - How to 'open file with' electron.js app? -
if user right-clicks on txt file should me able choose app , app should open file.
my question is, how identify if user has opened app file , file stored in app?
in java, external parameters stored in args[], electron have that?
you can set parameters
electron main.js argv1 argv2 and access parameters by
const = require('electron').remote; console.log(remote.process.argv); and output ["argv1", "argv2"]
Comments
Post a Comment