summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-17 13:21:27 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-17 13:21:27 +0000
commit57cb76cd8486a7cd4ca7de039dd874c6fe32ce94 (patch)
tree2f5955a8f200a9179a1ebe05be9a4150911b2ce7 /src/main.c
parent5bb75c2cc4c5ad23eebef9832fb74a9eaf632b51 (diff)
allow remote session variables to be used in actions
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
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)) {