diff -up notification-daemon-0.3.7/src/daemon/daemon.c.orig notification-daemon-0.3.7/src/daemon/daemon.c --- notification-daemon-0.3.7/src/daemon/daemon.c.orig 2007-02-15 12:47:09.000000000 +0200 +++ notification-daemon-0.3.7/src/daemon/daemon.c 2007-10-03 00:02:55.000000000 +0300 @@ -708,6 +708,14 @@ url_clicked_cb(GtkWindow *nw, const char { cmd = g_strdup_printf("gnome-open %s", escaped_url); } + /* + * Trying xdg-open only after gnome-open because it too is affected + * by the unavailability of GNOME_DESKTOP_SESSION_ID internally. + */ + else if (g_find_program_in_path("xdg-open") != NULL) + { + cmd = g_strdup_printf("xdg-open %s", escaped_url); + } else if (g_find_program_in_path("mozilla-firefox") != NULL) { cmd = g_strdup_printf("mozilla-firefox %s", escaped_url);