Skip to content

fix: shell.openPath should be non-blocking#48079

Merged
VerteDinde merged 1 commit intomainfrom
openpath-non-blocking
Aug 15, 2025
Merged

fix: shell.openPath should be non-blocking#48079
VerteDinde merged 1 commit intomainfrom
openpath-non-blocking

Conversation

@codebytere
Copy link
Copy Markdown
Member

Description of Change

Closes #47668.

Fixes an issue where shell.openPath was not non-blocking as expected.

Checklist

Release Notes

Notes: Fixed an issue where shell.openPath was not non-blocking as expected.

@VerteDinde VerteDinde added the semver/patch backwards-compatible bug fixes label Aug 15, 2025
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Aug 15, 2025
@VerteDinde VerteDinde merged commit 0e6c260 into main Aug 15, 2025
66 of 68 checks passed
@VerteDinde VerteDinde deleted the openpath-non-blocking branch August 15, 2025 20:55
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Aug 15, 2025

Release Notes Persisted

Fixed an issue where shell.openPath was not non-blocking as expected.

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 15, 2025

I have automatically backported this PR to "36-x-y", please check out #48087

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 15, 2025

I have automatically backported this PR to "37-x-y", please check out #48088

@trop trop bot removed the target/36-x-y PR should also be added to the "36-x-y" branch. label Aug 15, 2025
@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 15, 2025

I have automatically backported this PR to "38-x-y", please check out #48089

@trop trop bot added in-flight/37-x-y in-flight/38-x-y merged/36-x-y PR was merged to the "36-x-y" branch. and removed target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. in-flight/36-x-y in-flight/38-x-y labels Aug 15, 2025
@trop trop bot added merged/38-x-y PR was merged to the "38-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. and removed in-flight/37-x-y labels Aug 17, 2025
kigh-ota pushed a commit to kigh-ota/electron that referenced this pull request Sep 30, 2025
fix: shell.openPath should be non-blocking
tobias-jarvelov added a commit to mullvad/mullvadvpn-app that referenced this pull request Mar 26, 2026
As of this upstream PR[1] the underlying C implementation for
shell.openPath no longer waits for the process to exit, which
means that the callback in the C code will never be called.

That callback is what eventually causes the promise returned
by shell.openPath to resolve, and as it is never being called,
the promise will never be resolved.

Because of that, we just invoke shell.openPath and return a
promise resolved with an empty string, the same signature as
returned from shell.openPath.

[1] electron/electron#48079
tobias-jarvelov added a commit to mullvad/mullvadvpn-app that referenced this pull request Apr 2, 2026
As of this upstream PR[1] the underlying C implementation for
shell.openPath no longer waits for the process to exit, which
means that the callback in the C code will never be called.

That callback is what eventually causes the promise returned
by shell.openPath to resolve, and as it is never being called,
the promise will never be resolved.

Because of that, we just invoke shell.openPath and return a
promise resolved with an empty string, the same signature as
returned from shell.openPath.

[1] electron/electron#48079
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/36-x-y PR was merged to the "36-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. merged/38-x-y PR was merged to the "38-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

shell.openPath is blocking on Linux when it should be non-blocking

3 participants