mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-05 14:10:34 -04:00
manager/root: Add ReloadConfig method
This commit is contained in:
parent
bf218d248d
commit
cd14f50f68
1 changed files with 8 additions and 0 deletions
|
@ -290,6 +290,14 @@ impl SteamOSManager {
|
||||||
.map_err(to_zbus_error)
|
.map_err(to_zbus_error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async fn reload_config(&self) -> fdo::Result<()> {
|
||||||
|
self.channel
|
||||||
|
.send(DaemonCommand::ReadConfig)
|
||||||
|
.await
|
||||||
|
.inspect_err(|message| error!("Error sending ReadConfig command: {message}"))
|
||||||
|
.map_err(to_zbus_fdo_error)
|
||||||
|
}
|
||||||
|
|
||||||
/// A version property.
|
/// A version property.
|
||||||
#[zbus(property(emits_changed_signal = "const"))]
|
#[zbus(property(emits_changed_signal = "const"))]
|
||||||
async fn version(&self) -> u32 {
|
async fn version(&self) -> u32 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue