File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -319,6 +319,14 @@ pub fn run() {
319319 . plugin ( tauri_plugin_shell:: init ( ) )
320320 . manage ( SysState ( Mutex :: new ( System :: new_all ( ) ) ) )
321321 . setup ( |app| {
322+ // Force the window icon for Linux dock
323+ if let Some ( window) = app. get_webview_window ( "main" ) {
324+ let icon_bytes = include_bytes ! ( "../icons/icon.png" ) ;
325+ if let Ok ( icon) = tauri:: image:: Image :: from_bytes ( icon_bytes) {
326+ let _ = window. set_icon ( icon) ;
327+ }
328+ }
329+
322330 let handle = app. handle ( ) . clone ( ) ;
323331
324332 // Tray menu
Original file line number Diff line number Diff line change 22 "$schema" : " https://schema.tauri.app/config/2" ,
33 "productName" : " Sysora" ,
44 "version" : " 0.1.0" ,
5- "identifier" : " com.chojuninengu. sysora" ,
5+ "identifier" : " sysora" ,
66 "build" : {
77 "frontendDist" : " ../dist" ,
88 "devUrl" : " http://localhost:1420" ,
You can’t perform that action at this time.
0 commit comments