{"id":296,"date":"2016-11-07T11:35:21","date_gmt":"2016-11-07T09:35:21","guid":{"rendered":"https:\/\/www.luria.ch\/wp\/?p=296"},"modified":"2016-11-07T11:36:30","modified_gmt":"2016-11-07T09:36:30","slug":"choose-default-browser","status":"publish","type":"post","link":"https:\/\/www.luria.ch\/wp\/2016\/11\/07\/choose-default-browser\/","title":{"rendered":"Choose default browser"},"content":{"rendered":"<p>When trying to change default web browser on linux distros, it can be a mess&#8230;<\/p>\n<p>Too many different options and nobody knows the right one. And for a reason: there are several, depending on which app you are talking about.<\/p>\n<p>Here is what you need to do: <\/p>\n<p><!--more--><\/p>\n<p>The obvious one is:<\/p>\n<p><code>~$ sudo update-alternatives --config x-www-browser<br \/>\nThere are 3 choices for the alternative x-www-browser (providing \/usr\/bin\/x-www-browser).<br \/>\n  Selection    Path                       Priority   Status<br \/>\n------------------------------------------------------------<br \/>\n  0            \/usr\/bin\/vivaldi-stable     200       auto mode<br \/>\n  1            \/usr\/bin\/chromium-browser   40        manual mode<br \/>\n* 2            \/usr\/bin\/firefox            40        manual mode<br \/>\n  3            \/usr\/bin\/vivaldi-stable     200       manual mode<br \/>\nPress <enter> to keep the current choice[*], or type selection number:<\/code><\/p>\n<p>But don&rsquo;t forget this one !<\/p>\n<p><code>There are 3 choices for the alternative gnome-www-browser (providing \/usr\/bin\/gnome-www-browser).<br \/>\n  Selection    Path                       Priority   Status<br \/>\n------------------------------------------------------------<br \/>\n  0            \/usr\/bin\/vivaldi-stable     200       auto mode<br \/>\n  1            \/usr\/bin\/chromium-browser   40        manual mode<br \/>\n* 2            \/usr\/bin\/firefox            40        manual mode<br \/>\n  3            \/usr\/bin\/vivaldi-stable     200       manual mode<br \/>\nPress <enter> to keep the current choice[*], or type selection number:<\/code><\/p>\n<p>Now this should work&#8230; but we often miss this poorly documented one:<\/p>\n<p><code>~$ xdg-settings get default-web-browser<br \/>\nchromium.desktop<br \/>\n~$ xdg-settings set default-web-browser firefox.desktop<\/code><\/p>\n<p>When I say poorly documented, I mean you read the manual and you do not find the location of the configuration file involved (with <em>strace<\/em> you find out that it is <em>$HOME\/mimeapps.list<\/em>).<\/p>\n<p>Moreover, here is what you read:<\/p>\n<blockquote><p>\nCheck whether the default web browser is firefox.desktop, which can be false even if \u00ab\u00a0get default-web-browser\u00a0\u00bb says that is the current value (if only some of the underlying settings actually reflect that value)\n<\/p><\/blockquote>\n<p>That&rsquo;s it: one single distro, three (complicated, non self explained) options, poor documentation. This is why systemd folks won that battle, there IS a need for one standard, even if it&rsquo;s bad, it will get better over time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When trying to change default web browser on linux distros, it can be a mess&#8230; Too many different options and nobody knows the right one. And for a reason: there are several, depending on which app you are talking about. Here is what you need to do:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[59,9,33],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-linux","tag-shell","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":10,"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":307,"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/posts\/296\/revisions\/307"}],"wp:attachment":[{"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luria.ch\/wp\/wp-json\/wp\/v2\/tags?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}