Repository navigation
Fix single instance lock for macOS sandbox app - #3029
Merged
leaanthony merged 3 commits intoNov 5, 2023
Merged
Conversation
Contributor
Author
|
@leaanthony Please check this PR. I discovered issues with single instance lock for MacOs and found the way how to fix it. As Single Instance Lock wasn't released still, I didn't put this PR in changelog |
Contributor
Author
|
BTW, why linter is failing all the time on my PRs, even that I didn't touch these files 😅 |
leaanthony
approved these changes
Nov 5, 2023
leaanthony
left a comment
Member
There was a problem hiding this comment.
Thanks for this update @APshenkin 🙏
7 of 15 tasks
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.
Description
Recently Single Instance lock was introduced for all platforms. During application implementation I found two issues with case, when MacOs app is launched as sandbox app.
os.TempDir()return temp directory, which is not accessible by the app. Changed to native method to get temp directory. It returns proper directory in that case.userInfois not allowed https://developer.apple.com/forums/thread/129437. Fix implemented to pass message viaobjectinsteadType of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration using
wails doctor.Test Configuration
Signed application with
com.apple.security.app-sandboxenabledChecklist:
website/src/pages/changelog.mdxwith details of this PR