[notification-daemon] Update the list of ways to start a browser
- From: William Jon McCann <mccann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [notification-daemon] Update the list of ways to start a browser
- Date: Sat, 9 Jan 2010 00:55:13 +0000 (UTC)
commit a77670c61d6c4f15e3a57ede69a44fbed82d91e3
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 8 19:34:44 2010 -0500
Update the list of ways to start a browser
src/daemon/daemon.c | 17 ++++-------------
1 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index e9a8633..7b5bffd 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -845,27 +845,18 @@ url_clicked_cb(GtkWindow *nw, const char *url)
escaped_url = g_shell_quote(url);
- /*
- * We can't actually check for GNOME_DESKTOP_SESSION_ID, because it's
- * not in the environment for this program :(
- */
- if (/*g_getenv("GNOME_DESKTOP_SESSION_ID") != NULL &&*/
- g_find_program_in_path("gnome-open") != NULL)
+ if (g_find_program_in_path("gvfs-open") != NULL)
{
- cmd = g_strdup_printf("gnome-open %s", escaped_url);
+ cmd = g_strdup_printf("gvfs-open %s", escaped_url);
}
- else if (g_find_program_in_path("mozilla-firefox") != NULL)
+ else if (g_find_program_in_path("xdg-open") != NULL)
{
- cmd = g_strdup_printf("mozilla-firefox %s", escaped_url);
+ cmd = g_strdup_printf("xdg-open %s", escaped_url);
}
else if (g_find_program_in_path("firefox") != NULL)
{
cmd = g_strdup_printf("firefox %s", escaped_url);
}
- else if (g_find_program_in_path("mozilla") != NULL)
- {
- cmd = g_strdup_printf("mozilla %s", escaped_url);
- }
else
{
g_warning("Unable to find a browser.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]