Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 853820

Summary: sys-apps/baselayout: export environment variables needed for assistive technology
Product: Gentoo Linux Reporter: Anna Vyalkova <cyber+gentoo>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: UNCONFIRMED ---    
Severity: enhancement CC: accessibility, base-system, email, gentoo, qt, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anna Vyalkova 2022-06-22 21:50:51 UTC
TL;DR in /etc/profile set:

export ACCESSIBILITY_ENABLED=1
export QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1

About each variable:

1) ACCESSIBILITY_ENABLED
https://wiki.gnome.org/Projects/Orca/Chromium

2) QT_LINUX_ACCESSIBILITY_ALWAYS_ON
https://doc.qt.io/qt-6/qaccessible.html#details
Comment 1 Anna Vyalkova 2022-06-22 21:54:17 UTC
Other variables (that probably no one wants to enable).

- export GTK_MODULES=gail:atk-bridge
Not included because it's deprecated.
https://bugzilla.redhat.com/show_bug.cgi?id=787195

- export GNOME_ACCESSIBILITY=1
Haven't been used by applications for a very long time.
https://bugzilla.gnome.org/show_bug.cgi?id=461710

- export QT_ACCESSIBILITY=1
All guides mention it but it was removed a really long time ago (in 2011).
Comment 2 Anna Vyalkova 2022-06-23 00:00:19 UTC
Alternative solution for Qt:

If "accessibility" use flag is set (for dev-qt/qtgui or dev-qt/qtbase), install an env.d file that exports QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1.

Pros:
+ Guaranteed not to break applications (e.g. due to missing DBus -- needs testing)

Cons:
- Can't be controlled on per-slot basis, it'll be global anyway.