{"id":175,"date":"2008-11-21T17:53:16","date_gmt":"2008-11-22T01:53:16","guid":{"rendered":"http:\/\/www.outflux.net\/blog\/?p=175"},"modified":"2008-11-21T17:53:16","modified_gmt":"2008-11-22T01:53:16","slug":"directing-firefox-url-opening","status":"publish","type":"post","link":"https:\/\/outflux.net\/blog\/archives\/2008\/11\/21\/directing-firefox-url-opening\/","title":{"rendered":"directing firefox url opening"},"content":{"rendered":"<p>A while ago, I found a <a href=\"http:\/\/www.outflux.net\/blog\/archives\/2008\/02\/16\/firefox-trick-and-recovery-help\/\">way to open multiple firefox instances<\/a> so I could have multiple cookie\/password repositories.  One issue that plagued me was that when launching URLs from other applications (e.g. liferea, gnome-terminal, etc), the URL would open in the <em>longest running<\/em> firefox, so if I opened my Browsing instance first, then my Authenticated instance, URLs would open in the Browsing instance.  That&#8217;s what I wanted.<\/p>\n<p>However, if I had to restart my Browsing instance (like, say, when flash was crashing), URLs would start opening in the Authenticated instance, which I didn&#8217;t want.  So, I changed the Gnome preferences to run this script when launching a browser:<code><\/p>\n<pre>\r\n#!\/bin\/sh\r\nfirefox -p Browsing -remote 'openURL('\"$@\"')'\r\n<\/pre>\n<p><\/code><\/p>\n<p>Ta-da, URLs are always directed to the &#8220;Browsing&#8221; instance, regardless of when it was started.<\/p>\n<p style='text-align:left'>&copy; 2008, <a href=\"https:\/\/outflux.net\/blog\/\">Kees Cook<\/a>. This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 License<\/a>.<br \/><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img decoding=\"async\" alt=\"CC BY-SA 4.0\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while ago, I found a way to open multiple firefox instances so I could have multiple cookie\/password repositories. One issue that plagued me was that when launching URLs from other applications (e.g. liferea, gnome-terminal, etc), the URL would open in the longest running firefox, so if I opened my Browsing instance first, then my [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,18,14,13],"tags":[],"_links":{"self":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/175"}],"collection":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":0,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"wp:attachment":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}