Repository navigation
Don't wait for xdg-open to exit when OpenExternal is called (Linux) - #5072
Merged
Merged
Conversation
Some browsers (eg. Firefox) may not return until the browser window is closed. This causes the Electron application to lock up while the browser window is open. See atom/atom#6320
Contributor
Author
|
wait_for_exit should be const, of course. |
Contributor
|
This has been trolling us too, 👍 |
Contributor
|
@sneakypete81 I'd just test it via the console in the Electron default app - if you've got a repro it should be pretty easy |
Contributor
|
This would leak processes, I think we can follow Chromium's behavior, by launching a background killer for the process: base::Process process = base::LaunchProcess(argv, options);
if (process.IsValid())
base::EnsureProcessGetsReaped(process.Pid()); |
Contributor
Author
|
Thanks @zcbenz, good catch. @paulcbetts I've verified the fix like this: Steps to reproduce:
Before PR After PR |
Contributor
|
👍 |
Contributor
Author
|
Great, thanks for the feedback and the quick merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some browsers (eg. Firefox) may not return until the browser window is closed. This causes the Electron application to lock up while the browser window is open.
Fixes atom/atom#6320
I'm struggling to properly test this fix, as I can't work out how to use a custom build of Electron when building Atom. Any help with this would be appreciated.