X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F30accessibility;h=d838d76898b54ef4acaeecaca4db60b29069fa31;hb=2c649cf1f86f2030a213b9b0bfc1d1a1f0c14b2c;hp=2a91157a2a821551b219784b383cda1db3664119;hpb=c3e20f8ca4cd37d2641007947e58c781fd501f11;p=live-boot-grml.git diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility index 2a91157..d838d76 100755 --- a/scripts/live-bottom/30accessibility +++ b/scripts/live-bottom/30accessibility @@ -67,8 +67,8 @@ case ${ACCESS} in access=v2) # Moderate Visual Impairment gct -s -t bool /desktop/gnome/interface/accessibility true - gct -s -t bool /desktop/gnome/applications/at/visual/startup true gct -s -t bool /apps/gksu/disable-grab true + gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity if [ -x /root/usr/bin/orca ] then @@ -77,6 +77,10 @@ case ${ACCESS} in echo "orca.settings.enableSpeech = False" >> /root/home/${USERNAME}/.orca/user-settings.py echo "orca.settings.enableMagnifier = True" >> /root/home/${USERNAME}/.orca/user-settings.py chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca + + mkdir -p /root/home/${USERNAME}/.config/autostart + cp /root/usr/share/applications/orca.desktop /root/home/${USERNAME}/.config/autostart + chroot /root chown -R ${USERNAME}.${USERNAME} /home/${USERNAME}/.config fi ;; @@ -85,15 +89,20 @@ case ${ACCESS} in # Disabled for now, until we know eSpeak works. #gct -s -t bool /desktop/gnome/sound/enable_esd false gct -s -t bool /desktop/gnome/interface/accessibility true - gct -s -t bool /desktop/gnome/applications/at/visual/startup true gct -s -t bool /apps/gksu/disable-grab true gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity + + if [ -x /root/usr/bin/orca ] + then + mkdir -p /root/home/${USERNAME}/.config/autostart + cp /root/usr/share/applications/orca.desktop /root/home/${USERNAME}/.config/autostart + chroot /root chown -R ${USERNAME}.${USERNAME} /home/${USERNAME}/.config + fi ;; braille=ask) # Braille gct -s -t bool /desktop/gnome/interface/accessibility true - gct -s -t bool /desktop/gnome/applications/at/visual/startup true gct -s -t bool /apps/gksu/disable-grab true gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity @@ -104,6 +113,10 @@ case ${ACCESS} in echo "orca.settings.enableSpeech = False" >> /root/home/${USERNAME}/.orca/user-settings.py echo "orca.settings.enableBraille = True" >> /root/home/${USERNAME}/.orca/user-settings.py chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca + + mkdir -p /root/home/${USERNAME}/.config/autostart + cp /root/usr/share/applications/orca.desktop /root/home/${USERNAME}/.config/autostart + chroot /root chown -R ${USERNAME}.${USERNAME} /home/${USERNAME}/.config fi ;;