aboutsummaryrefslogtreecommitdiffstats
path: root/main/xchat/midori.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-06 12:21:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-06 12:21:10 +0000
commit81aa49a3d6105dbd53b600e0d70e2c0de3894202 (patch)
treeec6ef2c26911377347b194b42c923c0f57802df5 /main/xchat/midori.patch
parent41c5ec7ad6cdf9ede20899b20d26009eabb93877 (diff)
downloadaports-81aa49a3d6105dbd53b600e0d70e2c0de3894202.tar.bz2
aports-81aa49a3d6105dbd53b600e0d70e2c0de3894202.tar.xz
main/xchat: fallback to midori if browser is not found
Diffstat (limited to 'main/xchat/midori.patch')
-rw-r--r--main/xchat/midori.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/xchat/midori.patch b/main/xchat/midori.patch
new file mode 100644
index 0000000000..a9b4a08a44
--- /dev/null
+++ b/main/xchat/midori.patch
@@ -0,0 +1,15 @@
+diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c
+index 251a7d7..f427ad4 100644
+--- a/src/fe-gtk/fe-gtk.c
++++ b/src/fe-gtk/fe-gtk.c
+@@ -958,6 +958,10 @@ fe_open_url_inner (const char *url)
+ /* everything failed, what now? just try firefox */
+ if (try_browser ("firefox", NULL, url))
+ return;
++
++ /* try midori before giving up */
++ if (try_browser ("midori", NULL, url))
++ return;
+
+ /* fresh out of ideas... */
+ try_browser ("mozilla", NULL, url);