Skip to content

Conversation

cacieprins
Copy link
Contributor

@cacieprins cacieprins commented Sep 15, 2025

When Electron tries to connect to dbus but cannot, it writes many errors to stdout.

By default, Electron attempts to connect to dbus in order to interact with systray, etc. In docker environments, there is no desktop environment, and thus no dbus. Setting the DBUS_SESSION_BUS_ADDRESS explicitly to disabled: prevents Electron from attempting to connect to dbus.

By preventing Electron from attempting to connect to dbus, the dbus error messages should no longer be emitted in docker environments that source the Cypress docker images unless that environment variable is modified.

There is a companion pull request in the main Cypress project that attempts to disable dbus when Cypress detects that it is not running in an interactive terminal: https://github.com/cypress-io/cypress/pull/32479

Co-authored-by: Bill Glesias <[email protected]>
@cacieprins
Copy link
Contributor Author

This isn't a working solution, yet. Investigating.

@cacieprins cacieprins marked this pull request as draft September 15, 2025 20:38
MikeMcC399

This comment was marked as outdated.

@MikeMcC399
Copy link
Collaborator

@cacieprins cacieprins closed this Oct 1, 2025
@cacieprins cacieprins deleted the fix/disable-dbus-in-imgs branch October 1, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants