Skip to content

Commit

Permalink
dbus_proxy -> proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner committed Jan 19, 2025
1 parent 83ea161 commit 0eb11bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
//! [ScreenSaver]: https://people.freedesktop.org/~hadess/idle-inhibition-spec/re01.html
//! [systemd Inhibitor Locks]:(https://www.freedesktop.org/wiki/Software/systemd/inhibit/
use zbus::{blocking::Connection, dbus_proxy};
use zbus::{blocking::Connection, proxy};

use crate::Options;

pub type Error = zbus::Error;

#[dbus_proxy(
#[proxy(
interface = "org.freedesktop.login1.Manager",
default_service = "org.freedesktop.login1",
default_path = "/org/freedesktop/login1"
Expand All @@ -29,7 +29,7 @@ trait Manager {
) -> zbus::Result<zbus::zvariant::OwnedFd>;
}

#[dbus_proxy(assume_defaults = true)]
#[proxy(assume_defaults = true)]
trait ScreenSaver {
/// Inhibit method
fn inhibit(&self, application_name: &str, reason_for_inhibit: &str) -> zbus::Result<u32>;
Expand Down

0 comments on commit 0eb11bb

Please sign in to comment.