Package: gnome-control-center
Version: 1:3.0.1.1-1
Severity: normal
Tags: patch
--- Please enter the report below this line. ---
Hello,
Changing the default browser does not alter handler for text/html
mimetype. This should be imho synchronized with x-scheme-handler/http so
the same browser will be used for opening html files.
More over I am unable to set default application in nautilus. Using
something like
$ xdg-mime default iceweasel.desktop text/html
or manually editing
/.local/share/applications/{mimeapps.list,defaults.list} is probably not
the gnome3 way.
Cheers,
Petr
--- System information. ---
Architecture: i386
Kernel: Linux 3.0.0-1-686-pae
Debian Release: wheezy/sid
990 unstable www.debian-multimedia.org
990 unstable unofficial.debian-maintainers.org
990 unstable ftp.gajim.org
990 unstable ftp.cz.debian.org
500 experimental ftp.cz.debian.org
--- Package information. ---
Depends (Version) | Installed
==============================================-+-=================
libatk1.0-0 (>= 1.12.4) | 2.0.1-2
libc6 (>= 2.3.6-6~) | 2.13-21
libcairo-gobject2 (>= 1.10.0) | 1.10.2-6.1
libcairo2 (>= 1.10.0) | 1.10.2-6.1
libcanberra-gtk3-0 (>= 0.25) | 0.28-1
libcanberra0 (>= 0.2) | 0.28-1
libcomerr2 (>= 1.01) | 1.42~WIP-2011-09-25-1
libcups2 (>= 1.4.0) | 1.5.0-7
libdbus-1-3 (>= 1.0.2) | 1.4.16-1
libdbus-glib-1-2 (>= 0.78) | 0.96-1
libfontconfig1 (>= 2.8.0) | 2.8.0-3
libfreetype6 (>= 2.2.1) | 2.4.6-2
libgconf2-4 (>= 2.27.0) | 2.32.4-1
libgcrypt11 (>= 1.4.6) | 1.5.0-3
libgdk-pixbuf2.0-0 (>= 2.23.0) | 2.24.0-1
libglib2.0-0 (>= 2.28.0) | 2.28.6-3
libgnome-control-center1 (>= 1:2.91.91) | 1:3.0.1.1-1
libgnome-desktop-3-0 (>= 2.91.5) | 3.0.2-2
libgnome-menu2 (>= 2.27.92) | 3.0.1-1
libgnomekbd7 (>= 2.91.91) | 3.0.0.1-1
libgnutls26 (>= 2.9.11-0) | 2.12.10-2
libgssapi-krb5-2 (>= 1.6.dfsg.2) | 1.9.1+dfsg-3
libgtk-3-0 (>= 3.0.2) | 3.0.12-2
libgtop2-7 (>= 2.23.2) | 2.28.4-1
libk5crypto3 (>= 1.6.dfsg.2) | 1.9.1+dfsg-3
libkrb5-3 (>= 1.6.dfsg.2) | 1.9.1+dfsg-3
libnm-glib4 (>= 0.8.998) | 0.9.0-2
libnm-util2 (>= 0.8.998) | 0.9.0-2
libpango1.0-0 (>= 1.18.0) | 1.28.4-3
libpolkit-gobject-1-0 (>= 0.99) | 0.102-1
libpulse-mainloop-glib0 | 0.9.23-1
libpulse0 (>= 0.9.21) | 0.9.23-1
libstartup-notification0 (>= 0.10) | 0.12-1
libupower-glib1 (>= 0.9.0) | 0.9.13-1+b1
libx11-6 | 2:1.4.4-2
libxi6 (>= 2:1.2.0) | 2:1.4.3-3
libxklavier16 (>= 5.1) | 5.1-2
libxml2 (>= 2.7.4) | 2.7.8.dfsg-4
zlib1g (>= 1:1.1.4) | 1:1.2.3.4.dfsg-3
gnome-control-center-data (>= 1:3.0.1.1-1) | 1:3.0.1.1-1
gnome-control-center-data (<< 1:3.1) | 1:3.0.1.1-1
gnome-settings-daemon (>= 3.0.0) | 3.0.2-1
gnome-menus (>= 2.12.0) | 3.0.1-1
gnome-desktop-data | 2.30.2-2
gnome-icon-theme (>= 2.24) | 3.0.0-4
gnome-icon-theme-symbolic | 3.0.0-2
desktop-file-utils | 0.15-2
accountsservice | 0.6.14-1
gsettings-desktop-schemas (>= 2.91.92) | 3.0.1-1
apg | 2.2.3.dfsg.1-2
Recommends (Version) | Installed
================================-+-===========
gnome-user-guide | 3.0.4-1
gnome-session | 3.0.2-2
policykit-1-gnome | 0.102-1
mousetweaks | 2.30.2-1
iso-codes | 3.28-1
Suggests (Version) | Installed
======================================-+-===========
libcanberra-gtk-module | 0.28-1
gnome-screensaver | 3.0.0-2
OR xscreensaver | 5.14-1
x11-xserver-utils | 7.6+3
gstreamer0.10-alsa | 0.10.35-1
OR gstreamer0.10-audiosink |
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -920,6 +920,17 @@
}
}
+ /* Set browser as text/html handler as well */
+ if (g_str_equal (content_type, "x-scheme-handler/http"))
+ {
+ if (g_app_info_set_as_default_for_type (info, "text/html", &error) == FALSE)
+ {
+ g_warning ("Failed to set '%s' as the default application for '%s': %s",
+ g_app_info_get_name (info), "text/html", error->message);
+ g_error_free (error);
+ }
+ }
+
g_free (content_type);
g_object_unref (info);
}