]> spindle.queued.net Git - midori/commitdiff
Try to use ubuntu-bug if it exists
authorChristian Dywan <christian@twotoasts.de>
Thu, 22 Mar 2012 20:26:49 +0000 (21:26 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 22 Mar 2012 20:26:49 +0000 (21:26 +0100)
midori/midori-browser.c

index 9008f28e853d72349affd85e58018ee0abdb6c23..2a120de2fa6d1a04b3c6557c5f13bf841d5b8854 100644 (file)
@@ -4812,7 +4812,7 @@ _action_help_link_activate (GtkAction*     action,
                             MidoriBrowser* browser)
 {
     const gchar* action_name;
-    const gchar* uri;
+    const gchar* uri = NULL;
     gint n;
     #if defined (G_OS_WIN32) && defined (DOCDIR)
     gchar* free_uri = NULL;
@@ -4847,9 +4847,10 @@ _action_help_link_activate (GtkAction*     action,
         #endif
     }
     else if  (!strncmp ("HelpBugs", action_name, 8))
-        uri = PACKAGE_BUGREPORT;
-    else
-        uri = NULL;
+    {
+        if (!g_spawn_command_line_async ("ubuntu-bug " PACKAGE_NAME, NULL))
+            uri = PACKAGE_BUGREPORT;
+    }
 
     if (uri)
     {