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

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -