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

Enable setting the app's activation policy in MacOS #3374

Open
philc opened this issue Apr 6, 2024 · 1 comment
Open

Enable setting the app's activation policy in MacOS #3374

philc opened this issue Apr 6, 2024 · 1 comment
Labels
Enhancement New feature or request

Comments

@philc
Copy link

philc commented Apr 6, 2024

Is your feature request related to a problem? Please describe.

NSApplication has the method setActivationPolicy, which allows the app to configure itself as a regular app, accessory, or "prohibited."

Wails invokes this API in NSApplication.m:

[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];

I'm building an app launcher (replacement for Spotlight) and would like my app to be an accessory, meaning it's hidden from the doc and app switcher.

Describe the solution you'd like

The application object that Wails exposes should have a method which allows the activation policy to be modified at runtime.

@philc philc added the Enhancement New feature or request label Apr 6, 2024
@leaanthony
Copy link
Member

Hi Phil 👋
Sounds reasonable. It's implemented in v3 alpha so ideally we'd just backport that:

type ActivationPolicy int

If you fancy a go at it, let us know otherwise I can add it to the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants