You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In windows register table added command is "D:\project\vue2\node_modules\electron\dist\electron.exe "D:\project\vue2\desktop.js" "--autostart""
System will treat command arguments as part of executable file path
The text was updated successfully, but these errors were encountered:
ghost
changed the title
I if append args to autostart.opts.appPath the finally generate command is incorrect
If i append args to autostart.opts.appPath the finally generate command is incorrect
Sep 13, 2023
Args are not supported in that way. Electron apps use "--process-start-args" before the args that need to be forwarded to the process to be run.
Is your problem specific to the "autostart" in your example or do you want to use other arguments? Because "--autostart" to be the same as the purpose of auto-launch (to add an entry for launch at startup).
Other arguments should be read at process launch from a config/preference file.
In windows register table added command is "D:\project\vue2\node_modules\electron\dist\electron.exe "D:\project\vue2\desktop.js" "--autostart""
System will treat command arguments as part of executable file path
The text was updated successfully, but these errors were encountered: