{"id":1684,"date":"2015-07-10T13:15:40","date_gmt":"2015-07-10T17:15:40","guid":{"rendered":"http:\/\/z-issue.com\/wp\/?p=1684"},"modified":"2015-07-10T13:21:47","modified_gmt":"2015-07-10T17:21:47","slug":"thunderbird-links-open-in-chrome-chromium-in-incognito-mode","status":"publish","type":"post","link":"https:\/\/z-issue.com\/wp\/thunderbird-links-open-in-chrome-chromium-in-incognito-mode\/","title":{"rendered":"Thunderbird links open in Chrome \/ Chromium in incognito mode"},"content":{"rendered":"<div class=\"alert alert-success\" role=\"alert\"><p class=\"printonly\"><strong>Important!<\/strong><\/p>My tech articles&#8212;especially Linux ones&#8212;are some of the most-viewed on The Z-Issue.  If this one has helped you, please consider a small donation to <a href=\"https:\/\/z-issue.com\/wp\/the-parker-fund\/\" target=\"_blank\">The Parker Fund<\/a> by using the top widget at the right.  Thanks!<\/div>\n<p>For quite some time, I have tried to get links in <a href=\"https:\/\/www.mozilla.org\/thunderbird\/\" target=\"_blank\">Thunderbird<\/a> to open automatically in <a href=\"http:\/\/www.google.com\/chrome\/\" target=\"_blank\">Chrome<\/a> or <a href=\"https:\/\/www.chromium.org\/Home\" target=\"_blank\">Chromium<\/a> instead of defaulting to <a href=\"https:\/\/www.mozilla.org\/firefox\/\" target=\"_blank\">Firefox<\/a>.  Moreover, I have Chromium start in <a href=\"https:\/\/www.chromium.org\/user-experience\/incognito\" target=\"_blank\">incognito mode<\/a> by default, and I would like those links to do the same.  This has been a problem for me since I don&#8217;t use a full <a href=\"https:\/\/en.wikipedia.org\/wiki\/Desktop_environment\" target=\"_blank\">desktop environmen<\/a>t like <a href=\"https:\/\/www.kde.org\/\" target=\"_blank\">KDE<\/a>, <a href=\"https:\/\/www.gnome.org\/\" target=\"_blank\">GNOME<\/a>, or even <a href=\"http:\/\/www.xfce.org\/\" target=\"_blank\">XFCE<\/a>.  As I&#8217;m really a minimalist, I only have my <a href=\"https:\/\/en.wikipedia.org\/wiki\/Window_manager\" target=\"_blank\">window manager<\/a> (which is <a href=\"http:\/\/www.openbox.org\" target=\"_blank\">Openbox<\/a>), and the applications that I use on a regular basis.<\/p>\n<p>One thing I found, though, is that by using <a href=\"http:\/\/wiki.lxde.org\/en\/PCManFM\" target=\"_blank\">PCManFM<\/a> as my file manager, I do have a few other related applications and utilities that help me customise my workspace and workflows.  One such application is <a href=\"http:\/\/manned.org\/libfm-pref-apps\/bd371755\" target=\"_blank\">libfm-pref-apps<\/a>, which allows for setting preferred applications.  I found that I could do just what I wanted to do without mucking around with manually setting <a href=\"https:\/\/en.wikipedia.org\/wiki\/MIME\" target=\"_blank\">MIME types<\/a>, writing custom hooks for Thunderbird, or any of that other mess.<\/p>\n<p>Here&#8217;s how it was done:<\/p>\n<ol>\n<li>Execute <code>\/usr\/bin\/libfm-pref-apps<\/code> from your <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_terminal_emulators\" target=\"_blank\">terminal emulator<\/a> of choice<\/li>\n<li>Under &#8220;Web Browser,&#8221; select &#8220;Customise&#8221; from the drop-down menu<\/li>\n<li>Select the &#8220;Custom Command Line&#8221; tab<\/li>\n<li>In the &#8220;Command line to execute&#8221; box, type <code>\/usr\/bin\/chromium --incognito --start-maximized %U<\/code><\/li>\n<li>In the &#8220;Application name&#8221; box, type &#8220;Chromium incognito&#8221; (or however else you would like to identify the application)<\/li>\n<\/ol>\n<p>Voil&#224;!  After restarting Thunderbird, my links opened just like I wanted them to.  The only modification that you might need to make is the &#8220;Command line to execute&#8221; portion.  If you use the binary of Chrome instead of building the open-source Chromium browser, you would need to change it to the appropriate executable (and the path may be different for you, depending on your system and distribution).  Also, in the command line that I have above, here are some notes about the switches used:<\/p>\n<ul>\n<li><strong>&#8211;incognito<\/strong> starts Chromium in incognito mode by default (that one should be obvious)<\/li>\n<li><strong>&#8211;start-maximized<\/strong> makes the browser window open in the full size of your screen<\/li>\n<li><strong>%U<\/strong> allows Chromium to accept a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Uniform_resource_locator\" target=\"_blank\">URL<\/a> or list of URLs, and thus, opens the link that you clicked in Thunderbird<\/li>\n<\/ul>\n<p>Under the hood, it seems like libfm-pref-apps is adding some associations in the <code>~\/.config\/mimeapps.list<\/code> file.  The relevant lines that I found were:<\/p>\n<p><code>[Added Associations]<br \/>\nx-scheme-handler\/http=userapp-chromium --incognito --start-maximized-8KZNYX.desktop;<br \/>\nx-scheme-handler\/https=userapp-chromium --incognito --start-maximized-8KZNYX.desktop;<\/code><\/p>\n<p>Hope this information helps you get your links to open in your browser of choice (and with the command-line arguments that you want)!<\/p>\n<p>Cheers,<br \/>\nZach<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For quite some time, I have tried to get links in Thunderbird to open automatically in Chrome or Chromium instead of defaulting to Firefox. Moreover, I have Chromium start in incognito mode by default, and I would like those links to do the same. This has been a problem for me since I don&#8217;t use &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/z-issue.com\/wp\/thunderbird-links-open-in-chrome-chromium-in-incognito-mode\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,11],"tags":[127,139,71,39,59],"class_list":["post-1684","post","type-post","status-publish","format-standard","hentry","category-linux","category-technology","tag-arch-linux","tag-code","tag-gentoo-linux","tag-linux-tag","tag-software","item-wrap"],"_links":{"self":[{"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/posts\/1684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/comments?post=1684"}],"version-history":[{"count":11,"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/posts\/1684\/revisions"}],"predecessor-version":[{"id":1695,"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/posts\/1684\/revisions\/1695"}],"wp:attachment":[{"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/media?parent=1684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/categories?post=1684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/z-issue.com\/wp\/wp-json\/wp\/v2\/tags?post=1684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}