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

Stop desktop app from appearing in the macOS dock #5365

Closed
mrinalwadhwa opened this issue Jul 16, 2023 · 1 comment · Fixed by #5410
Closed

Stop desktop app from appearing in the macOS dock #5365

mrinalwadhwa opened this issue Jul 16, 2023 · 1 comment · Fixed by #5410

Comments

@mrinalwadhwa
Copy link
Member

mrinalwadhwa commented Jul 16, 2023

Current

We're building a Desktop System Tray app for Ockam using Tauri, see #5228

When we start the app in macOS it shows up in the macOS menu on he top right, this is expected:

Screenshot 2023-07-16 at 10 17 42 AM

But is also shows up in the macOS dock, this is not desired.

Screenshot 2023-07-16 at 10 16 13 AM

Desired

Should only show up in the menu.

Steps to reproduce

You can run the app as follows:

cd implementations/typescript
pnpm install
pnpm build

cd ../../implementations/rust/ockam/ockam_app
cargo tauri dev

Source Code

The code for this is here:


We love helping new contributors!
If you have questions or need help as you work on your first Ockam contribution, please leave a comment on this discussion or join us on discord. If you're looking for other issues to contribute to, checkout labels - good first issue or help wanted

@mrinalwadhwa
Copy link
Member Author

This is likely the fix:

#[cfg(target_os = "macos")]
app.set_activation_policy(tauri::ActivationPolicy::Accessory);

We likely have to add to it to app setup here:
https://github.com/build-trust/ockam/blob/develop/implementations/rust/ockam/ockam_app/src/lib.rs#L29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants