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:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user