{"id":45,"date":"2004-10-03T06:17:00","date_gmt":"2004-10-03T11:17:00","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=45"},"modified":"2004-10-03T06:17:00","modified_gmt":"2004-10-03T11:17:00","slug":"opening-urls-in-thunderbird","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=45","title":{"rendered":"Opening URLs in Thunderbird"},"content":{"rendered":"<p>Since changing from the monolithic Mozilla browser and email client a few months ago, I&#8217;ve had one small problem. Clicking on a link in Thunderbird doesn&#8217;t open up Firefox. I was unable to find an answer to this until recently. There&#8217;s some <a href=\"http:\/\/www.fedoraforum.org\/forum\/showthread.php?t=1412\">discussion<\/a> about it on the Fedora Forum and the <a href=\"http:\/\/www.mozilla.org\/projects\/thunderbird\/linuxurls.html\">Mozilla Thunderbird site<\/a>.<\/p>\n<p>There are two ways you could open a web page. One is if it&#8217;s attached to the email. The setting for this is in Tools\/Options\/Attachements in the File Types box. This uses \/usr\/bin\/htmlview to start a browser. I created <code>~\/.htmlviewrc<\/code> to contain this:<br \/>\n<br \/><code>X11BROWSER=\/usr\/local\/bin\/firefox<\/code><br \/>\n<br \/>but this doesn&#8217;t handle embedded URLs in emails. For that, the pages above tell you to change a user preference, but it&#8217;s not accesible from Thunderbird. You have to edit a preferences file. The page didn&#8217;t say where it was, so I modified a preference from the Options dialog (to force the file to be updated) and then ran this:<br \/>\n<br \/><code>find ~ -type f -mmin -10<\/code><br \/>\n<br \/>which will show all files in my home directories that were modified within the last 10 minutes.  In the list was <code>.thunderbird\/default.y81\/prefs.js<\/code>.  I added<br \/>\n<br \/><code>user_pref(\"network.protocol-handler.app.http\", \"\/usr\/local\/bin\/launch-firefox\");<\/code> and created \/usr\/local\/bin\/launch-firefox from the <a href=\"http:\/\/www.mozilla.org\/projects\/thunderbird\/linuxurls.html\">Thunderbird directions<\/a>, substituting <code>\/usr\/local\/firefox<\/code> for <code>\/opt\/firefox-builds\/current<\/code> in <code>MOZILLA_FIVE_HOME<\/code> and <code>openURL\\(\"$url\",new\\-tab\\);<\/code> for <code>openURL\\(\"$url\"\\);<\/code> because I prefer opening pages in new tabs rather than new windows.<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since changing from the monolithic Mozilla browser and email client a few months ago, I&#8217;ve had one small problem. Clicking on a link in Thunderbird doesn&#8217;t open up Firefox. I was unable to find an answer to this until recently. There&#8217;s some discussion about it on the Fedora Forum and the Mozilla Thunderbird site. There [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":0,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}