Modul-Split: Fachlogik nach domain/, OS-Code nach platform/, Tauri-Verdrahtung in app.rs/commands.rs

- lib.rs nur noch Prozessrollen-Dispatch + Panic-Tracer
- KWin-Script als KDE-Pendant zur GNOME-Extension (Popup ans Zeiger-
  Rechteck), wird von deb/rpm mit ausgeliefert
- SNI-Tray auf ksni (pure Rust), appindicator-Depends entfallen
This commit is contained in:
marcus hinz
2026-07-15 20:10:33 +02:00
parent cf844c45da
commit 9a99bca466
32 changed files with 4413 additions and 3572 deletions
+28
View File
@@ -0,0 +1,28 @@
//! KWin-Script pro Benutzer aktivieren und KWin neu laden — analog zu
//! `gnome-extensions enable`. Systemweit liegt es aus dem Paket. Nötig, weil
//! unter Wayland nur der Compositor unser Popup positionieren darf.
use std::process::Command;
pub(super) fn enable_script() {
let _ = Command::new("kwriteconfig6")
.args([
"--file",
"kwinrc",
"--group",
"Plugins",
"--key",
"ai-control-popupEnabled",
"true",
])
.status();
let _ = Command::new("dbus-send")
.args([
"--session",
"--dest=org.kde.KWin",
"--type=method_call",
"/KWin",
"org.kde.KWin.reconfigure",
])
.status();
}