The missing electron argument
I have an e-app that, when packaged, will remove the first argument after the name of the executable.
For example, the command launcher.exe a b c
fills in process.argv
from main.js and require('electron').remote.process.argv
from the console:
[
"C:\Users\me\AppData\Local\launcher\app-0.0.7\launcher.exe",
"b",
"c"
]
Where did it go a
? What for? How do I get it back? And why does this only happen after the application is packaged?
Edit: This issue occurs when I run the launch from "C: \ Users \ me \ AppData \ Local \ launcher \ launcher.exe" but not when I run it from "C: \ Users \ me \ AppData \ Local \ launcher \ application-0.0.7 \ launcher.exe ". Perhaps this is due to the electronic update.
source to share
No one has answered this question yet
Check out similar questions: