From 457cb5a10c4a7046b097ca2061e565ae22ccef88 Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Wed, 11 Oct 2017 11:37:17 +0200 Subject: [PATCH] Update stuff --- ...015-10-01-unicode-symbols-support.markdown | 4 ++ ...laserjet-m1217nfw-setup-with-cups.markdown | 1 + ...fault-browser-for-gnome-on-debian.markdown | 53 +++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 source/_posts/2017-10-11-chaging-default-browser-for-gnome-on-debian.markdown diff --git a/source/_posts/2015-10-01-unicode-symbols-support.markdown b/source/_posts/2015-10-01-unicode-symbols-support.markdown index ce3c19d..4241b89 100644 --- a/source/_posts/2015-10-01-unicode-symbols-support.markdown +++ b/source/_posts/2015-10-01-unicode-symbols-support.markdown @@ -17,3 +17,7 @@ from ports: `x11-fonts/symbola`. (Note: `x11-fonts/gnu-unifont` and `x11-fonts/gnu-unifont-ttf` are not nearly as exhaustive.) + +**Update 2017-01-23** Similar problem on Debian (CIRCLED LATIN CAPITAL LETTER V +(U+24CB), Ⓥ was missing). Resolved by installing `fonts-linuxlibertine`. + diff --git a/source/_posts/2016-08-27-hp-laserjet-m1217nfw-setup-with-cups.markdown b/source/_posts/2016-08-27-hp-laserjet-m1217nfw-setup-with-cups.markdown index f50bdd3..38366a0 100644 --- a/source/_posts/2016-08-27-hp-laserjet-m1217nfw-setup-with-cups.markdown +++ b/source/_posts/2016-08-27-hp-laserjet-m1217nfw-setup-with-cups.markdown @@ -12,6 +12,7 @@ raster data through a proprietary network protocol implemented as a closed source binary plugin to the CUPS filtering system. In addition to CUPS, the following ports must be installed: + * print/hplip * print/hplip-plugin diff --git a/source/_posts/2017-10-11-chaging-default-browser-for-gnome-on-debian.markdown b/source/_posts/2017-10-11-chaging-default-browser-for-gnome-on-debian.markdown new file mode 100644 index 0000000..23a8b03 --- /dev/null +++ b/source/_posts/2017-10-11-chaging-default-browser-for-gnome-on-debian.markdown @@ -0,0 +1,53 @@ +--- +layout: post +title: "Chaging default browser for GNOME on Debian" +date: 2017-10-11 11:25:00 +0200 +comments: true +categories: +--- + +Problem position +================ + +I have `chromium` and `firefox-esr` installed. I want `gvfs-open` +to default to the latter when opening a web URL. + +Alternatives +============ + +There are /etc/alternatives entries for `x-www-browser` and +`gnome-www-browser` that can be manually edited using + + # update-alternatives --config gnome-www-browser + # update-alternatives --config x-www-browser + +Unsuprisingly, this won't have the desired effect. Life +would be too simple... + +GNOME MIME +========== + +The default browser for GNOME applications is determined using +`gvfs-mime`. Per-user overrides can be specified in +`~/.local/share/applications/mimeapps.list`. System-wide +defaults are generated by `update-desktop-database` and +stored in `/usr/share/applications/mimeinfo.cache`. + +Quoting https://wiki.debian.org/MIME: + +> The mimeinfo.cache is basically a raw reverse cache for the +> .desktop information. There is no way to define priorities in it. +> To be able to specify default applications, a mimeapps.list file +> (previously named defaults.list up to debian 5) must be created. +> It can be system-wide (in /usr/share/applications or a subdirectory) +> or user-specific (in $HOME/.local/share/applications). + +And indeed the fix was to reorder the list from `mimeinfo.cache`, +and create the following file: + +```plain /usr/share/applications/mimeapps.list +[Default Applications] +x-scheme-handler/http=firefox-esr.desktop;chromium.desktop;google-chrome.desktop; +x-scheme-handler/https=firefox-esr.desktop;chromium.desktop;google-chrome.desktop; +``` +