daemon: revert zbus to 1.9.1 in daemon

This commit is contained in:
Luke D Jones
2021-04-07 15:05:26 +12:00
parent 9b4ed6eb62
commit 2af33a0416
18 changed files with 125 additions and 249 deletions

View File

@@ -3,6 +3,7 @@ use crate::{config::Config, GetSupported};
use log::{info, warn};
use rog_types::profile::{FanLevel, Profile, ProfileEvent};
use serde_derive::{Deserialize, Serialize};
use zvariant::ObjectPath;
use std::fs::OpenOptions;
use std::io::Write;
use std::path::Path;
@@ -180,7 +181,7 @@ impl DbusFanAndCpu {
impl crate::ZbusAdd for DbusFanAndCpu {
fn add_to_server(self, server: &mut zbus::ObjectServer) {
server
.at("/org/asuslinux/Profile", self)
.at(&ObjectPath::from_str_unchecked("/org/asuslinux/Profile"), self)
.map_err(|err| {
warn!("DbusFanAndCpu: add_to_server {}", err);
err