Skip to content
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

Detect whether an app has a menu bar icon #4

Open
wdhwg001 opened this issue May 24, 2020 · 1 comment
Open

Detect whether an app has a menu bar icon #4

wdhwg001 opened this issue May 24, 2020 · 1 comment
Assignees

Comments

@wdhwg001
Copy link

Hi,

As I realised it might be a bit complex to manually blacklist all apps that can run on background with menu icons, would it be possible to automatically detect them and prevent them from accidentally closing?

Thanks!

@Wowfunhappy
Copy link
Contributor

I think this should already work most of the time. Have you tried it?

Goodbye does not close apps that have LSUIElement set to true. Generally, apps set this when they should not appear in the Dock.

Explicitly checking for a menu bar icon is a clever idea though, as an extra precaution. I don't personally know how to do that, but my Objective C knowledge is minimal.

@w0lfschild w0lfschild self-assigned this Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants