GApplication: use infinite timeout for CommandLine
authorRyan Lortie <desrt@desrt.ca>
Thu, 28 Oct 2010 20:46:18 +0000 (16:46 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 28 Oct 2010 20:47:13 +0000 (16:47 -0400)
Use an infinite DBus timeout for sending a CommandLine request to the
primary instance.

This resolves a bit of bug #633339.

gio/gapplicationimpl-dbus.c

index 8a3837d..feee24f 100644 (file)
@@ -859,7 +859,7 @@ g_application_impl_command_line (GApplicationImpl  *impl,
                           "CommandLine",
                           g_variant_new ("(o^aay@a{sv})", object_path,
                                          arguments, platform_data),
-                          G_VARIANT_TYPE ("(i)"), 0, -1, NULL,
+                          G_VARIANT_TYPE ("(i)"), 0, G_MAXINT, NULL,
                           g_application_impl_cmdline_done, &data);
 
   g_main_loop_run (data.loop);