[Bug]: app.relaunch loses args when execPath specified. #33686
Labels
18-x-y
19-x-y
bug 🪲
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/all
Preflight Checklist
Electron Version
18.0.1
What operating system are you using?
macOS
Operating System Version
10.14.6
What arch are you using?
x64
Last Known Working Electron version
17.0.0-alpha.3
Expected Behavior
When invoking
app.relaunch
and specifying bothexecPath
andargs
, I expect the args to be passed to the new process.Actual Behavior
The binary specified by
execPath
is spawned as a new process, but theargs
are not applied.Testcase Gist URL
https://gist.github.com/p120ph37/98cf0fb13790feed702f3e90cbddfbf6
Additional Information
This bug was introduced in
17.0.0-alpha.4
, and is present in all newer stable versions up to and including at least19.0.0-alpha.1
Also note thatapp.relaunch()
doesn't work at all from within Electron Fiddle, so to run this gist, you must launch Electron directly (e.g.: vianpm start
).The text was updated successfully, but these errors were encountered: