Skip to main content

Module scxcli

Module scxcli 

Source
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Β§

ScxcliBackend

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.

FunctionsΒ§

is_root πŸ”’
stderr πŸ”’