Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43674

Accessibility is not enabled when running as root

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.1, 6.6.0
    • 5.4.0, 5.9.1
    • None
    • Linux
    • Linux/X11
    • d23562da1c4cb525d4012bee55bd665c6cafef04, db346e711 (dev), dd8b648e6 (6.5), 9a35bd02d (dev), b71d37a80 (6.5)

    Description

      The AT-SPI bridge may not initialize when running as root. I noticed this with YaST under SUSE, which, unfortunately, runs its UI as root when configuring anything system-wide. When setting up the dbus connection, we call GetAddress on org.a11y.Bus to get the address for the accessibility bus, but this doesn't work if DBUS_SESSION_BUS_ADDRESS doesn't match the session bus address for the user's ain session. Libatspi tries first to get the bus address from an atom in the X session, and it may be desirable to do this, although it is specific to X11.

      Another related issue is that I believe calling ScreenReaderEnabled will return false when running as a user other than the user running the screen reader (ie, root); not sure how best to fix this.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mgorse Mike Gorse
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes