Skip to content

Commit 8feb0fb

Browse files
committed
feat: set window icon for Linux dock and update application identifier
1 parent cb2c5f0 commit 8feb0fb

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src-tauri/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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",

0 commit comments

Comments
 (0)