Skip to content

Commit 8c76a95

Browse files
OrKoNThiago Perrotta
andauthored
Start dbus for Chrome (#42241)
* [wdspec] debug dbus * Add dbus to dockerfile * refactor dbus * Update tools/docker/Dockerfile Co-authored-by: Thiago Perrotta <[email protected]> * revert changes from the docker file * configure dbus autolaunch --------- Co-authored-by: Thiago Perrotta <[email protected]>
1 parent 2562b45 commit 8c76a95

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/ci/run_tc.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ def install_certificates():
140140
run(["sudo", "update-ca-certificates"])
141141

142142

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+
143150
def install_chrome(channel):
144151
if channel in ("experimental", "dev"):
145152
deb_archive = "google-chrome-unstable_current_amd64.deb"
@@ -257,6 +264,8 @@ def setup_environment(args):
257264
if "chrome" in args.browser:
258265
assert args.channel is not None
259266
install_chrome(args.channel)
267+
# Chrome is using dbus for various features.
268+
start_dbus()
260269

261270
if args.xvfb:
262271
start_xvfb()

0 commit comments

Comments
 (0)