Expand description
scxcli as a child process.
Reads are scxcli list --json, parsed into the types of the published
contract (model). Writes are scxcli start|stop|run run directly
when scxtui is root, and through pkexec otherwise, so scxtui itself
never needs root and never touches the configuration.
Re-exportsΒ§
use std::path::Path;πuse std::path::PathBuf;πuse std::process::Command;πuse std::process::Stdio;πuse crate::model::Listing;πuse crate::model::OUTPUT_VERSION;πuse crate::system::system_command;πuse crate::system::system_executable;πuse anyhow::Context;πuse anyhow::Result;πuse anyhow::bail;πuse super::Backend;πuse super::Report;π
StructsΒ§
ConstantsΒ§
- POLICY_
PATH π - Where the shipped polkit policy expects scxcli. A scxcli found elsewhere still runs, but polkit then matches no action and pkexec falls back to asking for an administratorβs password for everything.