X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F30accessibility;h=314496dd5cc514a29417823ed1887cc49b02bdd3;hb=cabcd3723fc124a3816f7e992912189e65c7b382;hp=9c20265484395fdf493c6c9af81e3c2127473ef1;hpb=64af8a933cdcb85e25ccce3771554df22450372d;p=live-boot-grml.git diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility index 9c20265..314496d 100755 --- a/scripts/live-bottom/30accessibility +++ b/scripts/live-bottom/30accessibility @@ -64,9 +64,11 @@ case ${ACCESS} in gct -s -t bool /desktop/gnome/applications/at/visual/startup true gct -s -t bool /apps/gksu/disable-grab true - if [ -e /root/usr/share/pycentral/gnome-orca/site-packages/orca/settings.py ] + if type orca > /dev/null 2>&1 then - sed -i '/^enableSpeech\W/ s/True/False/;/^enableMagnifier/ s/False/True/' /root/usr/share/pycentral/gnome-orca/site-packages/orca/settings.py + mkdir -p /root/home/${USERNAME}/.orca + echo "orca.settings.enableSpeech = True" >> /root/home/${USERNAME}/.orca/orca-customizations.py + echo "orca.settings.enableMagnifier = True" >> /root/home/${USERNAME}/.orca/orca-customizations.py fi ;; @@ -85,9 +87,11 @@ case ${ACCESS} in gct -s -t bool /desktop/gnome/applications/at/visual/startup true gct -s -t bool /apps/gksu/disable-grab true - if [ -e /root/usr/share/pycentral/gnome-orca/site-packages/orca/settings.py ] + if type orca > /dev/null 2>&1 then - sed -i '/^enableSpeech\W/ s/True/False/;/^enableBraille/ s/False/True/' /root/usr/share/pycentral/gnome-orca/site-packages/orca/settings.py + mkdir -p /root/home/${USERNAME}/.orca + echo "orca.settings.enableSpeech = True" >> /root/home/${USERNAME}/.orca/orca-customizations.py + echo "orca.settings.enableBraille = True" >> /root/home/${USERNAME}/.orca/orca-customizations.py fi ;;