macOS: Show Vorta in Dock / Cmd-Tab while main window is open #2521
QuirkyTurtle94
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'd like to propose a small macOS behavior change for Vorta and wanted to check whether this fits the project before opening a PR.
Current behavior
On macOS, Vorta is packaged as a menu-bar / accessory app using
LSUIElement. As a result, when the main Vorta window is open, the app does not behave like a normal foreground macOS app, leading to a few UX issues:Suggestion
Keep Vorta as a menu-bar app by default, but when the main window is opened, temporarily switch the app's macOS activation policy to regular app behavior (ie tabbable, shows in the dock). When the main window is closed, switch back to accessory/menu-bar
Possible implementation
On macOS this can be done with the native activation policy via PyObjC/AppKit:
NSApplicationActivationPolicyRegularwhen opening the main windowNSApplicationActivationPolicyAccessorywhen closing the main windowThis would avoid changing the packaged
LSUIElementbehavior globally, so Vorta would still start as a menu-bar app.I have a local prototype for this approach and can open a PR if this is a direction maintainers would support.
Questions
Would this behavior be acceptable for Vorta on macOS?
If yes, would you prefer this as:
Also, should this PR stay focused only on Dock / Cmd-Tab visibility, or should it also add/adjust standard macOS app menus such as File, Edit, and Window?
All reactions