[epiphany] Get default browser app info using x-scheme-handler



commit ad11f7a440f4efca5ab376dd7e3dfc39b6e9e27c
Author: Jérémy Lal <kapouer melix org>
Date:   Wed Oct 7 10:50:15 2015 +0200

    Get default browser app info using x-scheme-handler
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750275

 lib/ephy-file-helpers.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 9e7ab29..3c28062 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -829,8 +829,7 @@ ephy_file_open_uri_in_default_browser (const char *uri,
        gdk_app_launch_context_set_screen (context, screen);
        gdk_app_launch_context_set_timestamp (context, timestamp);
 
-       /* We assume the default application that supports HTML and URIs is the default browser */
-       appinfo = g_app_info_get_default_for_type ("text/html", TRUE);
+       appinfo = g_app_info_get_default_for_type ("x-scheme-handler/http", TRUE);
        uris.data = (gpointer)uri;
        uris.next = uris.prev = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]