[Xfce4-commits] <midori:master> Try to use ubuntu-bug if it exists
Christian Dywan
noreply at xfce.org
Thu Mar 22 21:32:01 CET 2012
Updating branch refs/heads/master
to ae7a09a0870886cabdda508c86f164a05c7ffca0 (commit)
from 9751a60dbc88bf361f727e6e2b43e4d6d8eaea29 (commit)
commit ae7a09a0870886cabdda508c86f164a05c7ffca0
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Mar 22 21:26:49 2012 +0100
Try to use ubuntu-bug if it exists
midori/midori-browser.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 9008f28..2a120de 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -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)
{
More information about the Xfce4-commits
mailing list