New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: create userData
on requestSingleInstanceLock() if needed
#33559
Conversation
9327ee6
to
94494c7
Compare
94494c7
to
701a76d
Compare
/ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this!
Left comments for minor improvements
dfa9a71
to
5c80f29
Compare
8bc94e1
to
480d479
Compare
480d479
to
aa00bfd
Compare
@jkleinsc how to trigger linux and mac CI for PR from forks ? |
(@deepak1556 it's not a fork, it's just the branch name) |
userDataDir
on requestSingleInstanceLock() if neededuserData
on requestSingleInstanceLock() if needed
Sorry missed that, we still need to trigger the linux and mac CI for this branch, not sure why they are not run. |
* test: use custom userData folder for requestSingleInstanceLock() * update test * prefix test folder path * fix: create userDataDir on requestSingleInstanceLock() if needed * Trigger Build
I have automatically backported this PR to "16-x-y", please check out #33590 |
I have automatically backported this PR to "17-x-y", please check out #33591 |
I have automatically backported this PR to "18-x-y", please check out #33592 |
I have automatically backported this PR to "19-x-y", please check out #33593 |
…) (#33591) * test: use custom userData folder for requestSingleInstanceLock() * update test * prefix test folder path * fix: create userDataDir on requestSingleInstanceLock() if needed * Trigger Build Co-authored-by: Micha Hanselmann <micha.hanselmann@gmail.com>
…) (#33592) * test: use custom userData folder for requestSingleInstanceLock() * update test * prefix test folder path * fix: create userDataDir on requestSingleInstanceLock() if needed * Trigger Build Co-authored-by: Micha Hanselmann <micha.hanselmann@gmail.com>
…) (#33593) * test: use custom userData folder for requestSingleInstanceLock() * update test * prefix test folder path * fix: create userDataDir on requestSingleInstanceLock() if needed * Trigger Build Co-authored-by: Micha Hanselmann <micha.hanselmann@gmail.com>
…tron#33559) * test: use custom userData folder for requestSingleInstanceLock() * update test * prefix test folder path * fix: create userDataDir on requestSingleInstanceLock() if needed * Trigger Build
…tron#33559) * test: use custom userData folder for requestSingleInstanceLock() * update test * prefix test folder path * fix: create userDataDir on requestSingleInstanceLock() if needed * Trigger Build
Description of Change
Closes #33547.
Regression introduced by #30594. The patch removed the behavior of creating the
userData
folder if needed. Without it, the single instance lock cannot be aquired andapp.requestSingleInstanceLock()
incorrectly returns false on first start of the app.This PR restores the behavior from Electron 15 and below (= before the refactor landed). Test to prevent future regressions added as well☺️ .
cc @magom001 @miniak @rzhao271
Checklist
npm test
passesRelease Notes
Notes: Fixed incorrect return value of
app.requestSingleInstanceLock()
when setting non-existent user data folder.