diff options
Diffstat (limited to 'pidgin/gtknotify.c')
-rw-r--r-- | pidgin/gtknotify.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/pidgin/gtknotify.c b/pidgin/gtknotify.c index 9a7a7422a9..83884fbbb1 100644 --- a/pidgin/gtknotify.c +++ b/pidgin/gtknotify.c @@ -1367,11 +1367,32 @@ pidgin_notify_uri(const char *uri) command = g_strdup_printf("opera %s", escaped); } + else if (!strcmp(web_browser, "google-chrome")) + { + /* Google Chrome doesn't have command-line arguments that control the + * opening of links from external calls. This is controlled solely from + * a preference within Google Chrome. */ + command = g_strdup_printf("google-chrome %s", escaped); + } + else if (!strcmp(web_browser, "chrome")) + { + /* Chromium doesn't have command-line arguments that control the + * opening of links from external calls. This is controlled solely from + * a preference within Chromium. */ + command = g_strdup_printf("chrome %s", escaped); + } + else if (!strcmp(web_browser, "chromium-browser")) + { + /* Chromium doesn't have command-line arguments that control the + * opening of links from external calls. This is controlled solely from + * a preference within Chromium. */ + command = g_strdup_printf("chromium-browser %s", escaped); + } else if (!strcmp(web_browser, "custom")) { const char *web_command; - web_command = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/browsers/command"); + web_command = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/browsers/manual_command"); if (web_command == NULL || *web_command == '\0') { |