[Spice-devel] [vdagent-linux v1 1/2] systemd-login: change template string for later usage

Victor Toso victortoso at redhat.com
Fri May 27 09:42:29 UTC 2016


Removing '' will make this define usable in next patch
---
 src/systemd-login.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/systemd-login.c b/src/systemd-login.c
index fa59348..730547a 100644
--- a/src/systemd-login.c
+++ b/src/systemd-login.c
@@ -39,7 +39,7 @@ struct session_info {
 };
 
 #define LOGIND_SESSION_INTERFACE    "org.freedesktop.login1.Session"
-#define LOGIND_SESSION_OBJ_TEMPLATE "'/org/freedesktop/login1/session/_3%s'"
+#define LOGIND_SESSION_OBJ_TEMPLATE "/org/freedesktop/login1/session/_3%s"
 
 #define SESSION_SIGNAL_LOCK         "Lock"
 #define SESSION_SIGNAL_UNLOCK       "Unlock"
@@ -91,8 +91,8 @@ static void si_dbus_match_rule_update(struct session_info *si)
     si_dbus_match_remove(si);
 
     si->dbus.match_session_signals =
-        g_strdup_printf ("type='signal',interface='%s',path="
-                         LOGIND_SESSION_OBJ_TEMPLATE,
+        g_strdup_printf ("type='signal',interface='%s',path='"
+                         LOGIND_SESSION_OBJ_TEMPLATE"'",
                          LOGIND_SESSION_INTERFACE,
                          si->session);
     if (si->verbose)
-- 
2.5.5



More information about the Spice-devel mailing list