refactor(src/daemon): replace execute calls with execute_local for dbus commands

Why: Adopt local execution path to streamline command handling and reduce RPC overhead.

New Features
-

Enhancements
- Replace `gpu::execute` with `gpu::execute_local` in integrated, hybrid, and nvidia command invocations.
- Replace `crate::commands::power`, `battery`, `cooling`, and `touchpad` executions with `execute_local`.
- Remove the unused `LAPCTL_DAEMON_INTERNAL` environment variable setting.

Bug Fixes
- None
This commit is contained in:
sankalp committed 2026-03-23 16:16:31 +05:45
1 parent 0dc00ec5c9
commit 01d2e148a0
2 files changed
+8 -11

No files matched your search

-3
View File
@@ -6,9 +6,6 @@ mod dbus_iface;
pub async fn run() -> Result<(), Box<dyn Error>> {
info!("Starting lapctld daemon...");
unsafe {
std::env::set_var("LAPCTL_DAEMON_INTERNAL", "1");
}
let _connection = Builder::system()?
.name("org.lapctl")?
.serve_at("/org/lapctl", dbus_iface::LapctlInterface::default())?