You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to hide the icon from taskbar by using main_window.set_skip_taskbar(true),but this does't work if the app is running with wayland:
// Prevents additional console window on Windows in release, DO NOT REMOVE!!#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]use tauri::Manager;// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command#[tauri::command]fngreet(name:&str) -> String{format!("Hello, {}! You've been greeted from Rust!", name)}fnmain(){
tauri::Builder::default().setup(|app|{let main_window = app.get_window("main").unwrap();
main_window.set_skip_taskbar(true).unwrap();// This doesn't work when using wayland!Ok(())}).invoke_handler(tauri::generate_handler![greet]).run(tauri::generate_context!()).expect("error while running tauri application");}
The icon is still visible in the taskbar:
I can hide the icon by forcing the app to run with x11 (using GDK_BACKEND=x11 environment variable), but I hope that when running it using native wayland, the application icon can also be hidden from the taskbar.
Describe the bug
I want to hide the icon from taskbar by using
main_window.set_skip_taskbar(true)
,but this does't work if the app is running with wayland:The icon is still visible in the taskbar:
![图片](https://private-user-images.githubusercontent.com/16934087/332088422-35bb825a-2ea9-40c9-b828-83411c1f4b4a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyNTk2MzMsIm5iZiI6MTcxODI1OTMzMywicGF0aCI6Ii8xNjkzNDA4Ny8zMzIwODg0MjItMzViYjgyNWEtMmVhOS00MGM5LWI4MjgtODM0MTFjMWY0YjRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDA2MTUzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmMGZhNzI1ZTJkZjk0YzAzMGYwZjdhMmJhMzgwYTczMDQ3MWU0N2U1OWE1ZmNmZjYzMDhlNDUzYWRmNzQ1MmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LGGZim7iiSpamTsSobeqO_bp3yTDh0nMwA-NUZiKI7g)
I can hide the icon by forcing the app to run with x11 (using
GDK_BACKEND=x11
environment variable), but I hope that when running it using native wayland, the application icon can also be hidden from the taskbar.Reproduction
https://github.com/FengZhongShaoNian/tauri-hide-appicon-from-taskbbar
Expected behavior
I hope that when running it using native wayland, the application icon can also be hidden from the taskbar.
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: