gtk4 applications try to invoke org.a11y.Bus service many times when constructing widgets(?)
Steps to reproduce
- Make sure there isn't a provider of the
org.a11y.Bus
d-bus name. - Run
dbus-monitor --session
- Start
gtk4-demo
I was also able to reproduce this with other gtk4 applications such as World/Fragments.
Current behavior
gtk4-demo
takes a very long time to start. You can see dbus-monitor
outputting a lot of:
method call time=1649538238.002215 sender=:1.14538 -> destination=org.a11y.Bus serial=1636 path=/org/a11y/bus; interface=org.a11y.Bus; member=GetAddress
error time=1649538238.002255 sender=org.freedesktop.DBus -> destination=:1.14538 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=1636
string "The name org.a11y.Bus was not provided by any .service files"
The amount of queries seems to be roughly correlated with the complexity of the user-interface being presented.
In addition to a slow startup, you can also observe it being fairly slow to switch between sections in gtk4-demo
. For example opening Cursors
takes a long time.
Expected outcome
Application starts quickly, and there aren't as many repeated queries to a non-existent D-Bus endpoint.
Version information
- gtk 4.6.2
- NixOS
- sway
Edited by nagisa