summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/30accessibility
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-10-26 13:39:37 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:06 +0100
commit705393cde8a537bb0a652d676949b9890c110d3a (patch)
treeb5b399b59675aeb190ed9e40bcc5a2a1d21ab13b /scripts/live-bottom/30accessibility
parentf1d90cde9113d2fc012b7234e698e88e4e3ecfc3 (diff)
downloadlive-boot-705393cde8a537bb0a652d676949b9890c110d3a.tar.gz
live-boot-705393cde8a537bb0a652d676949b9890c110d3a.zip
Merging casper 1.166.
Diffstat (limited to 'scripts/live-bottom/30accessibility')
-rwxr-xr-xscripts/live-bottom/30accessibility41
1 files changed, 22 insertions, 19 deletions
diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility
index ba9c23d..3c51fa0 100755
--- a/scripts/live-bottom/30accessibility
+++ b/scripts/live-bottom/30accessibility
@@ -47,19 +47,6 @@ gct ()
fi
}
-laptop_detect ()
-{
- if [ -x /root/usr/bin/orca ]
- then
- if chroot /root /usr/sbin/laptop-detect
- then
- mkdir -p /root/home/$USERNAME/.orca
- echo "orca.settings.orcaModifierKeys = orca.settings.LAPTOP_MODIFIER_KEYS" >> /root/home/$USERNAME/.orca/user-settings.py
- echo "orca.settings.keyboardLayout = orca.settings.GENERAL_KEYBOARD_LAYOUT_LAPTOP" >> /root/home/$USERNAME/.orca/user-settings.py
- fi
- fi
-}
-
remove_applet ()
{
# Code to remove an applet from the default panel setup
@@ -110,7 +97,6 @@ case ${ACCESS} in
echo "import orca.settings" >> /root/home/${USERNAME}/.orca/user-settings.py
echo "orca.settings.enableSpeech = False" >> /root/home/${USERNAME}/.orca/user-settings.py
echo "orca.settings.enableMagnifier = True" >> /root/home/${USERNAME}/.orca/user-settings.py
- laptop_detect
chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca
fi
;;
@@ -127,11 +113,19 @@ case ${ACCESS} in
sed -i -e 's/# Host alias specification/Defaults\tenv_keep = "ORBIT_SOCKETDIR XDG_SESSION_COOKIE GTK_MODULES"\n\n# Host alias specification/g' /root/etc/sudoers
remove_applet fast_user_switch
- laptop_detect
- touch /root/etc/pulse/a11y_nostart
- sed -i -e 's/autospawn = yes/autospawn = no/g' /root/etc/pulse/client.conf
- mkdir -p /root/home/$USERNAME/.orca
- chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.orca
+ if [ -x /root/usr/bin/pulse-session ]
+ then
+ touch /root/home/$USERNAME/.pulse_a11y_nostart
+ chroot /root chown $USERNAME.$USERNAME /home/$USERNAME/.pulse_a11y_nostart
+ mkdir -p /root/home/$USERNAME/.pulse
+ echo "autospawn = no" > /root/home/$USERNAME/.pulse/client.conf
+ chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.pulse
+ fi
+ if [ -x /root/usr/bin/orca ]
+ then
+ mkdir -p /root/home/$USERNAME/.orca
+ chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.orca
+ fi
;;
braille=ask)
@@ -153,6 +147,15 @@ case ${ACCESS} in
chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca
fi
+ if [ -x /root/usr/bin/pulse-session ]
+ then
+ touch /root/home/$USERNAME/.pulse_a11y_nostart
+ chroot /root chown $USERNAME.$USERNAME /home/$USERNAME/.pulse_a11y_nostart
+ mkdir -p /root/home/$USERNAME/.pulse
+ echo "autospawn = no" > /root/home/$USERNAME/.pulse/client.conf
+ chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.pulse
+ fi
+
remove_applet fast_user_switch
;;