mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-17 11:46:46 -04:00
screenreader: Don't enable/disable unit; it can't be installed anyway
This commit is contained in:
parent
a3ab918546
commit
f62aa583e1
2 changed files with 3 additions and 12 deletions
|
@ -128,6 +128,7 @@ impl<'dbus> SystemdUnit<'dbus> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub async fn enable(&self) -> Result<bool> {
|
||||
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
||||
let (_, res) = manager
|
||||
|
@ -136,6 +137,7 @@ impl<'dbus> SystemdUnit<'dbus> {
|
|||
Ok(!res.is_empty())
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub async fn disable(&self) -> Result<bool> {
|
||||
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
||||
let res = manager
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue