#!/usr/bin/sh
#
# to be sourced
#
# Xsession.d script to set the QT_ACCESSIBILITY env variable when accessibility
# is enabled.
#
# This file is sourced by Xsession, not executed.

if [ -x "/usr/bin/gsettings" ]; then
 a11y_enabled=$(gsettings get org.gnome.desktop.interface toolkit-accessibility)
 if [ "$a11y_enabled" = "true" ]; then
  export QT_ACCESSIBILITY=1
 fi
fi 
