git-sync: 2026-07-06 22:34

This commit is contained in:
marcus hinz
2026-07-06 22:34:16 +02:00
parent 1df0da4d48
commit d3231ccecb
+14 -3
View File
@@ -1999,9 +1999,15 @@ pub fn run() {
}
});
}
_ => main_builder()
.run(context)
.expect("error while running tauri application"),
_ => {
// Linux: feste Wayland-app_id fürs Hauptfenster (vor GTK-Init) — GNOME
// ordnet dem offenen Fenster über ai-control.desktop das App-Icon zu.
#[cfg(target_os = "linux")]
glib::set_prgname(Some("ai-control"));
main_builder()
.run(context)
.expect("error while running tauri application");
}
}
}
@@ -2149,6 +2155,11 @@ fn main_builder() -> tauri::Builder<tauri::Wry> {
let main_win = tauri::WebviewWindowBuilder::new(app, "main", tauri::WebviewUrl::default())
.title("ai-control")
.inner_size(800.0, 600.0)
// Fenster-Icon (_NET_WM_ICON) — deckt X11-DEs wie XFCE direkt ab,
// unabhängig von der .desktop-Zuordnung; auf Windows das Titel-/Taskbar-Icon.
.icon(tauri::image::Image::from_bytes(include_bytes!(
"../icons/128x128.png"
))?)?
.visible(false);
// Wie die Terminal-Fenster: eigener Header als Titelleiste. macOS behält die
// Ampel (Overlay), Linux ist dekorationslos (eigene Fensterknöpfe im Header).