From f12134a9c8c1c6d093c4d67c4b0363c971ee02e8 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 23 Mar 2026 15:39:08 +0545 Subject: [PATCH] feat(src/daemon): set LAPCTL_DAEMON_INTERNAL env var internally Set an internal environment variable when the daemon starts to allow components to detect internal mode and prepare for future runtime configuration. - New Features - Introduce `LAPCTL_DAEMON_INTERNAL` set to "1" inside the daemon. - Enhancements - Enable downstream components to detect internal daemon execution. --- src/daemon/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/daemon/mod.rs b/src/daemon/mod.rs index 5cae0f7..f05c99e 100644 --- a/src/daemon/mod.rs +++ b/src/daemon/mod.rs @@ -6,6 +6,9 @@ mod dbus_iface; pub async fn run() -> Result<(), Box> { 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())?