From 1ed97f058cf4f210c4c136948b53d36aefb37cdf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Enrico=20Tr=C3=83=C2=B6ger?= <enrico@xfce.org>
Date: Tue, 5 Aug 2008 08:31:17 +0000
Subject: [PATCH]  * Add 'xdg-open' as possible browser command to open URLs.

(Old svn revision: 5196)
---
 ChangeLog    | 1 +
 lib/common.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 75d1a38..b86d562 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
  * Prevent opening a file manager when there is set an empty search URL.
  * Make dict_open_browser() static for common.c as it is not used
    anywhere else.
+ * Add 'xdg-open' as possible browser command to open URLs.
 
 
 2008-07-16  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
diff --git a/lib/common.c b/lib/common.c
index 584be67..dcae1af 100644
--- a/lib/common.c
+++ b/lib/common.c
@@ -130,7 +130,7 @@ static gboolean open_browser(DictData *dd, const gchar *uri)
 	gboolean result = FALSE;
 	guint i = 0;
 	const gchar *browsers[] = {
-		"exo-open", "htmlview", "firefox", "mozilla",
+		"xdg-open", "exo-open", "htmlview", "firefox", "mozilla",
 		"opera", "epiphany", "konqueror", "seamonkey", NULL };
 
 	while (browsers[i] != NULL && (browser_path = g_find_program_in_path(browsers[i])) == NULL)
-- 
GitLab