From 57cb76cd8486a7cd4ca7de039dd874c6fe32ce94 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Thu, 17 Nov 2011 13:21:27 +0000 Subject: allow remote session variables to be used in actions --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 647307e..bb21503 100644 --- a/src/main.c +++ b/src/main.c @@ -201,10 +201,10 @@ static int mailslot_send_message(HANDLE h, gchar **args) { json_object_set_array_member(obj, "args", array); g_strfreev(args); + } else { + json_object_set_boolean_member(obj, "present", TRUE); } - //json_object_set_boolean_member(obj, "present", TRUE); - json_node_take_object(node, obj); generator = json_generator_new(); @@ -323,7 +323,7 @@ int main(int argc, char *argv[]) { #ifdef HAVE_LIBUNIQUE if (withUnique) - app = unique_app_new_with_commands(TRG_LIBUNIQUE_DOMAIN, NULL, + app = unique_app_new_with_commands(TRG_LIBUNIQUE_DOMAIN, NULL, "add", COMMAND_ADD, NULL); if (withUnique && unique_app_is_running(app)) { -- cgit v1.2.3