Ubiquity, improved check to enable orca
This commit is contained in:
parent
5bb6aac30c
commit
26d1353921
1 changed files with 5 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2011-2020 Ruben Rodriguez <ruben@trisquel.info>
|
||||
# Copyright (C) 2011-2021 Ruben Rodriguez <ruben@trisquel.info>
|
||||
# Copyright (C) 2019 Mason Hock <mason@masonhock.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
VERSION=16
|
||||
VERSION=17
|
||||
EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu impish main universe'
|
||||
#REPOKEY="871920D1991BC93C"
|
||||
|
||||
|
|
@ -232,9 +232,9 @@ then
|
|||
fi
|
||||
|
||||
# Hacks for accessibility
|
||||
if pgrep orca > /dev/null
|
||||
if [ \$(gsettings get com.canonical.a11y-profile-manager active-profile) == "'blindness'" ]
|
||||
then
|
||||
echo "Orca screen reader seems to be running, enabling accessibility by default in target system"
|
||||
echo "Accessibility profile set to 'blindness', enabling screen reader by default in target system"
|
||||
echo "[org.mate.applications-at]
|
||||
screen-reader-enabled=true
|
||||
|
||||
|
|
@ -256,9 +256,7 @@ screen-reader=true
|
|||
chroot /target glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||
|
||||
else
|
||||
set +e
|
||||
grep -q v3 /proc/cmdline && exit
|
||||
echo "Orca screen reader seems not to be running, disabling accessibility by default in target system"
|
||||
echo "Accessibility profile set to none, disabling screen reader by default in target system"
|
||||
rm /target/home/*/.local/share/orca/user-settings.conf -f
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue