Can't pass Command arguments in Electron


i did association to .plmx extension file to be opened in my app by D-click.
I want my form application can be launched by any package with .plmx extension, it doens’t open any file when I double clicked on an associated file. It just invokes my app with initial form. How to access my own extension file and read the content of this file. how to read and display this file into my main form by double clicking the file?

when i write “console.log(process.argv);” , I don’t see my file shown.
(dont succeed to catch the file argument i want to open)…
How to solve that one?.Thank you in advance.

all the app is written in javascript!