Repository navigation
Conversation
Latch switches between a regular app while its window is open and a menu bar app while it is closed, through NSApplication's activation policy on the main dispatch queue. Started hidden at login, it begins as a menu bar app. Fixes vinnovateit#232
The app records itself as the runtime owner before it loads its data and writes the LaunchAgent only after that, so a slow runner could check for it too early. The step now waits up to 30s for it while the app runs.
Contributor
Author
|
why is macos only failing on this bro |
This branch has not been deployed
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.
Fixes #232
latch nwo switches bw a regular app (dock icon, cmdtab) while its window is open and a menu bar app while it is closed
through NSApplication's activation policy. the change runs on the main thread through the main dispatch queue like the existing location prompt. started hidden at login it begins as a menu bar app, so no icon flashes up first
Platforms: macOS
testing
builds; a new
MacNativeIntegrationTestcase checks that AppKit answerssetActivationPolicyandactivateIgnoringOtherApps: and runs in the macos CI jobused a vm for this so check using actual mac: close the window and the dock icon goes open it from the menu bar and it comes back with the window in front