GTK+ applications show warning "Couldn't connect to accessibility bus"

Solution Verified - Updated -

Issue

  • SSH into a RHEL 7 and later machine and run a GTK+ application (eg: gedit). A message like this is shown:

    ** (gedit:23301): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-4jKXtHuxPN: Connection refused
    

Environment

  • Red Hat Enterprise Linux (RHEL) 7, 8, 9
  • ssh
  • X11 forwarding

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content