title: How to make chrome use session bus instead of system bus
body: <p>I am trying to make chrome use session dbus on a docker container instead of system bus but failed so far. I have tried the following:</p>
  <pre class="lang-sh prettyprint-override"><code>Xvfb $DISPLAY -screen 0 1920x1080x24 -pn -noreset &gt;&gt; /tmp/xvfb.log 2&gt;&amp;1 &amp;
  export $(dbus-launch)
  google-chrome --no-sandbox --no-first-run
  </code></pre>
  <pre class="lang-sh prettyprint-override"><code>Xvfb $DISPLAY -screen 0 1920x1080x24 -pn -noreset &gt;&gt; /tmp/xvfb.log 2&gt;&amp;1 &amp;
  dbus-run-session -- google-chrome --no-sandbox --no-first-run
  </code></pre>
  <p>in both cases <code>DBUS_SESSION_BUS_ADDRESS</code> is set but looks like chrome ignores it and tries to connect to <code>/var/run/dbus/system_bus_socket</code>:</p>
  <pre><code>[32:135:0820/204612.634920:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
  [32:135:0820/204612.635302:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
  [32:135:0820/204612.635467:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
  </code></pre>