mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 09:52:00 -04:00
systemd: Fix arguments to MaskUnitFiles
This commit is contained in:
parent
e38ac57891
commit
b674f694af
1 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@ trait SystemdManager {
|
|||
&self,
|
||||
files: &[&str],
|
||||
runtime: bool,
|
||||
force: bool,
|
||||
) -> Result<Vec<(String, String, String)>>;
|
||||
|
||||
async fn unmask_unit_files(
|
||||
|
@ -130,7 +131,7 @@ impl<'dbus> SystemdUnit<'dbus> {
|
|||
pub async fn mask(&self) -> Result<bool> {
|
||||
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
||||
let res = manager
|
||||
.mask_unit_files(&[self.name.as_str()], false)
|
||||
.mask_unit_files(&[self.name.as_str()], false, false)
|
||||
.await?;
|
||||
Ok(!res.is_empty())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue