感谢 Laszlo Papp 的评论,我看了看 qt-at-spi setup ...
$> locate qt-at-spi
/usr/share/doc/qt-at-spi
/usr/share/doc/qt-at-spi/README
/usr/share/doc/qt-at-spi/changelog.Debian.gz
/usr/share/doc/qt-at-spi/copyright
/var/lib/dpkg/info/qt-at-spi:amd64.list
/var/lib/dpkg/info/qt-at-spi:amd64.md5sums
让我们看看 README 文件告诉我们什么:
$> more /usr/share/doc/qt-at-spi/README
Qt AT-SPI2 bridge
=================
This is a Qt plugin that bridges Qt's accessibility API to AT-SPI2.
With recent versions of AT-SPI2 this should make Qt applications accessible
with the help of tools such as Gnome's Orca screen-reader.
Switch gnome to use at-spi2:
gconftool-2 --set /desktop/gnome/interface/at-spi-dbus --type bool true
gconftool-2 --set /desktop/gnome/interface/at-spi-corba --type bool false
To run gnome apps with at-spi2 in a non-gnome session:
export GTK_MODULES=gail:atk-bridge
Qt will only load this plugin when the environment variable
QT_ACCESSIBILITY is set to 1.
就像自述文件所说的那样,我的机器上的 QT_ACCESSIBILITY 环境变量设置为 1。
所以解决方案是:
sudo dpkg --purge qt-at-spi
- 或取消设置此变量,在快速研究后,根据 gnome 设置在 /etc/X11/Xsession.d/90qt-a11y 脚本中设置:
gsettings 设置 org.gnome.desktop.interface 工具包-可访问性 false
谢谢拉兹洛!