default applications: Set the selected browser to handle HTTPS urls also
This commit is contained in:
parent
5af8da53d1
commit
865744496c
2 changed files with 5 additions and 3 deletions
|
@ -79,7 +79,8 @@ web_combo_changed_cb (GtkComboBox *combo, GnomeDACapplet *capplet)
|
|||
if (item == NULL)
|
||||
return;
|
||||
|
||||
if (!g_app_info_set_as_default_for_type (item->app_info, "x-scheme-handler/http", &error)) {
|
||||
if (!g_app_info_set_as_default_for_type (item->app_info, "x-scheme-handler/http", &error) ||
|
||||
!g_app_info_set_as_default_for_type (item->app_info, "x-scheme-handler/https", &error)) {
|
||||
g_warning (_("Error setting default browser: %s"), error->message);
|
||||
g_error_free (error);
|
||||
}
|
||||
|
|
|
@ -243,13 +243,14 @@ load_url_handlers (GnomeDACapplet *capplet, const gchar *scheme, GList **item_li
|
|||
|
||||
executable = g_app_info_get_executable (app_info);
|
||||
if (is_executable_valid (executable)) {
|
||||
GnomeDASimpleItem *url_item;
|
||||
GnomeDAURLItem *url_item;
|
||||
|
||||
url_item = gnome_da_simple_item_new ();
|
||||
url_item = gnome_da_url_item_new ();
|
||||
url_item->generic.name = g_strdup (g_app_info_get_display_name (app_info));
|
||||
url_item->generic.executable = g_strdup (executable);
|
||||
url_item->generic.command = g_strdup (g_app_info_get_commandline (app_info));
|
||||
url_item->generic.icon_name = g_strdup (g_app_info_get_name (app_info));
|
||||
url_item->app_info = g_object_ref (app_info);
|
||||
|
||||
*item_list = g_list_append (*item_list, url_item);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue