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
{{ message }}
Repository navigation
If i append args to autostart.opts.appPath the finally generate command is incorrect #116
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
Activity
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[/+]on 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.
Activity
[-]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[/+]Oxalin commentedon Dec 3, 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.