9a99bca466
- 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
29 lines
681 B
Rust
29 lines
681 B
Rust
//! 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();
|
|
}
|