From 6d1ff90303bf906016c96ef890974b2c0e712dc1 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Wed, 10 Jun 2020 09:29:07 +0200 Subject: [PATCH] Add org.freedesktop.DBus.Method.NoReply annotations --- rog-core/src/rog_dbus.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rog-core/src/rog_dbus.rs b/rog-core/src/rog_dbus.rs index 6e88e4c2..b1b2f94b 100644 --- a/rog-core/src/rog_dbus.rs +++ b/rog-core/src/rog_dbus.rs @@ -78,7 +78,7 @@ pub(super) fn dbus_create_ledeffect_method(effect: NestedVecType) -> Method Method, _>("bytearray9") .inarg::, _>("bytearray10") .inarg::, _>("bytearray11") + .annotate("org.freedesktop.DBus.Method.NoReply", "true") } pub(super) fn dbus_create_animatrix_method(effect: NestedVecType) -> Method { @@ -107,7 +108,7 @@ pub(super) fn dbus_create_animatrix_method(effect: NestedVecType) -> Method> = vec![iter.read()?, iter.read()?]; *lock = Some(byte_array); - Ok(vec!(m.msg.method_return())) + Ok(vec![]) } else { Err(MethodErr::failed("Could not lock daemon for access")) } @@ -115,6 +116,7 @@ pub(super) fn dbus_create_animatrix_method(effect: NestedVecType) -> Method, _>("bytearray1") .inarg::, _>("bytearray2") + .annotate("org.freedesktop.DBus.Method.NoReply", "true") } pub(super) fn dbus_create_fan_mode_method(fan_mode: FanModeType) -> Method {