File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,13 @@ def install_certificates():
140
140
run (["sudo" , "update-ca-certificates" ])
141
141
142
142
143
+ def start_dbus ():
144
+ run (["sudo" , "service" , "dbus" , "start" ])
145
+ # Enable dbus autolaunch for Chrome
146
+ # https://source.chromium.org/chromium/chromium/src/+/main:content/app/content_main.cc;l=220;drc=0bcc023b8cdbc073aa5c48db373810db3f765c87.
147
+ os .environ ["DBUS_SESSION_BUS_ADDRESS" ] = "autolaunch:"
148
+
149
+
143
150
def install_chrome (channel ):
144
151
if channel in ("experimental" , "dev" ):
145
152
deb_archive = "google-chrome-unstable_current_amd64.deb"
@@ -257,6 +264,8 @@ def setup_environment(args):
257
264
if "chrome" in args .browser :
258
265
assert args .channel is not None
259
266
install_chrome (args .channel )
267
+ # Chrome is using dbus for various features.
268
+ start_dbus ()
260
269
261
270
if args .xvfb :
262
271
start_xvfb ()
You can’t perform that action at this time.
0 commit comments