{"id":12754,"date":"2021-11-19T12:23:28","date_gmt":"2021-11-19T12:23:28","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=12754"},"modified":"2024-02-16T10:48:37","modified_gmt":"2024-02-16T10:48:37","slug":"chromium-browser-instances","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=12754","title":{"rendered":"Chromium browser instances"},"content":{"rendered":"<p>One browser instance operates on one user data directory.<\/p>\n<hr>\n<p><strong>Scenario 1<\/strong><\/p>\n<pre>\r\n$ .\/&lt;path\/to\/chromium\/&gt;chromium\r\n$ .\/&lt;path\/to\/chromium\/&gt;chromium\r\n<\/pre>\n<p>This first call opens up a new chromium instance in a new window (on the default user data dir).<br \/>\nThe second call opens up another window for the same chromium instance.<br \/>\n&#8211;> This happens because they have the same user data directory.<\/p>\n<p><strong>Scenario 2<\/strong><\/p>\n<pre>\r\n$ .\/&lt;path\/to\/chromium\/&gt;chromium\r\n$ .\/&lt;path\/to\/chromium\/&gt;chromium --user-data-dir=\"&lt;path\/to\/non-default\/user-data&gt;\"\r\n<\/pre>\n<p>This first call opens up a new chromium instance in a new window (on the default user data dir).<br \/>\nThe second call opens up another chromium instance in another window.<br \/>\n&#8211;> This happens because they have a different user data directory.<\/p>\n<hr>\n<p>Responsable code (v98.0.4711.1)<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/chromium\/chromium\/blob\/98.0.4711.1\/chrome\/browser\/process_singleton.h\">process_singleton.h<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/chromium\/chromium\/blob\/98.0.4711.1\/chrome\/browser\/process_singleton_win.cc\">process_singleton_win.cc<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/chromium\/chromium\/blob\/98.0.4711.1\/chrome\/browser\/process_singleton_posix.cc\">process_singleton_posix.cc<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>One browser instance operates on one user data directory. Scenario 1 $ .\/&lt;path\/to\/chromium\/&gt;chromium $ .\/&lt;path\/to\/chromium\/&gt;chromium This first call opens up<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[55],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/12754"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12754"}],"version-history":[{"count":1,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/12754\/revisions"}],"predecessor-version":[{"id":16837,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/12754\/revisions\/16837"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12754"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}