-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[bug] hide taskbar icon on macos side is not working #4852
Comments
See #2358 and tauri-apps/tao#105 for the relevant macos feature requests. |
For anyone who comes to this issue through googling, Tauri has already implemented this feature: See Line 731 in 8fd79b8
|
To clarify, after few trial/error (I'm not familiar with Rust at all) I found this way to hide the default Docker icon and only show the one on the system tray (top nav): fn main() {
let tray_menu = SystemTrayMenu::new(); // insert the menu items here
let system_tray = SystemTray::new().with_menu(tray_menu);
tauri::Builder::default()
.setup(|app| {
// Make the docker NOT to have an active app when started
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
Ok(())
})
.system_tray(system_tray)
// ... |
I apologize for getting back to you so late, it does work, thanks! |
Thank you. Indeed. |
Edit: nevermind, thought that was new content but you were replying to the older comment :) |
Describe the bug
Hello developers, the property (skipTaskbar) and method (setSkipTaskbar) for hiding the taskbar icon in macos system are invalid when passed to true or false, and the corresponding method (set_skip_taskbar) is also invalid when written in rust. I don't know if windows is working because there is no windows available for testing! I hope you guys can solve the problem!
Reproduction
If the value of the skipTaskbar property of the windows configuration window in tauri.conf.json is true or false, the effect of hiding is not achieved, and then calling the setSkipTaskbar method of the api will not help either
Expected behavior
I want to hide the icons in the macos dock bar, and of course the same effect for windows
Platform and versions
Environment
› OS: Mac OS 12.4.0 X64
› Node.js: 16.14.1
› npm: 8.5.0
› pnpm: 7.7.1
› yarn: 1.22.17
› rustup: 1.25.1
› rustc: 1.62.1
› cargo: 1.62.1
› Rust toolchain: stable-aarch64-apple-darwin
Packages
› @tauri-apps/cli [NPM]: 1.0.5
› @tauri-apps/api [NPM]: 1.0.2
› tauri [RUST]: 1.0.5,
› tauri-build [RUST]: 1.0.4,
› tao [RUST]: 0.12.2,
› wry [RUST]: 0.19.0,
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: