diff options
author | Ted Gould <ted@gould.cx> | 2010-06-28 18:33:43 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-06-28 18:33:43 -0500 |
commit | dce233d4c70e90cfb0f3862ba66538222ffbb7d6 (patch) | |
tree | 4ad46a7a213cfa423fec1e5a308a48e4d1bc6eca /tests/test-json-client.c | |
parent | ecfd01992d210f2411d1adac9ed7622837135210 (diff) | |
download | libdbusmenu-dce233d4c70e90cfb0f3862ba66538222ffbb7d6.tar.gz libdbusmenu-dce233d4c70e90cfb0f3862ba66538222ffbb7d6.tar.bz2 libdbusmenu-dce233d4c70e90cfb0f3862ba66538222ffbb7d6.zip |
Starting to link things together... still not working.
Diffstat (limited to 'tests/test-json-client.c')
-rw-r--r-- | tests/test-json-client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test-json-client.c b/tests/test-json-client.c index 2d90608..7208fa8 100644 --- a/tests/test-json-client.c +++ b/tests/test-json-client.c @@ -23,7 +23,7 @@ main (int argv, char ** argc) gboolean has_owner = FALSE; gint owner_count = 0; while (!has_owner && owner_count < 10000) { - org_freedesktop_DBus_name_has_owner(bus_proxy, "org.test", &has_owner, NULL); + org_freedesktop_DBus_name_has_owner(bus_proxy, "org.dbusmenu.test", &has_owner, NULL); owner_count++; } @@ -36,8 +36,10 @@ main (int argv, char ** argc) g_debug("Initing"); - mainloop = g_main_loop_new(NULL, FALSE); - g_main_loop_run(mainloop); + gchar * command = g_strdup_printf("%s --dbus-name=org.dbusmenu.test --dbus-object=/org/test > %s", argc[1], argc[2]); + g_debug("Executing: %s", command); + + g_spawn_command_line_sync(command, NULL, NULL, NULL, NULL); g_debug("Exiting"); |