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
getForwardedArgs() in main.js drops the first user argument for packaged apps #1072
In a packaged app, the first user argument is dropped before being forwarded
to the backend, because the host main.js uses process.argv.slice(2):
returnprocess.argv.slice(2).filter(arg=>{ ... });
The first user argument shifts by one between launch modes (offset documented
in #647), so the fixed slice(2) only matches the dev launch:
electronize start (dev): first user arg at process.argv[2] -> slice(2) keeps it ✓
packaged executable: first user arg at process.argv[1] -> slice(2) drops it ✗
Steps to Reproduce
Run myapp.exe --foo=bar — backend gets no args.
Run myapp.exe -- --foo=bar — --foo=bar arrives, confirming the first argument is swallowed.
Activity
FlorianRappl commentedon Jun 5, 2026
That's right - I think we should behave the same way in both modes (packaged and unpackaged). Will try to resolve this over the weekend!
FlorianRappl commentedon Jun 7, 2026
Landed in preview - will be published with 0.5.1.