Skip to content
Snippets Groups Projects
Commit 26d13539 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Ubiquity, improved check to enable orca

parent 5bb6aac3
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/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> # Copyright (C) 2019 Mason Hock <mason@masonhock.com>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 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' EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu impish main universe'
#REPOKEY="871920D1991BC93C" #REPOKEY="871920D1991BC93C"
...@@ -232,9 +232,9 @@ then ...@@ -232,9 +232,9 @@ then
fi fi
# Hacks for accessibility # Hacks for accessibility
if pgrep orca > /dev/null if [ \$(gsettings get com.canonical.a11y-profile-manager active-profile) == "'blindness'" ]
then 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] echo "[org.mate.applications-at]
screen-reader-enabled=true screen-reader-enabled=true
...@@ -256,9 +256,7 @@ screen-reader=true ...@@ -256,9 +256,7 @@ screen-reader=true
chroot /target glib-compile-schemas /usr/share/glib-2.0/schemas chroot /target glib-compile-schemas /usr/share/glib-2.0/schemas
else else
set +e echo "Accessibility profile set to none, disabling screen reader by default in target system"
grep -q v3 /proc/cmdline && exit
echo "Orca screen reader seems not to be running, disabling accessibility by default in target system"
rm /target/home/*/.local/share/orca/user-settings.conf -f rm /target/home/*/.local/share/orca/user-settings.conf -f
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment