summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-03-06 09:19:13 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:04 +0100
commitcf35cadbe5f0e8fad936fc2454c355ef9871a065 (patch)
tree1aa51ad8d20687901bfc958ac82a8ced3a68e445 /scripts
parent94853efc193b3721c9be6d89a756c660b6b57d05 (diff)
downloadlive-boot-cf35cadbe5f0e8fad936fc2454c355ef9871a065.tar.gz
live-boot-cf35cadbe5f0e8fad936fc2454c355ef9871a065.zip
Merging casper 1.157.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live-bottom/30accessibility21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility
index 51780d2..3ff3fda 100755
--- a/scripts/live-bottom/30accessibility
+++ b/scripts/live-bottom/30accessibility
@@ -56,6 +56,24 @@ laptop_detect ()
fi
}
+remove_applet ()
+{
+ # Code to remove an applet from the default panel setup
+ # This is rather hacky, but I can't think of a one or two line regular
+ # expression to do this any more efficiently. Patches welcome. In
+ # addition, setting these via gconf also doesn't work for some reason.
+
+ local line_no prior_line next_line
+
+ line_no="$(grep -n "<string>$1</string>" /root/usr/share/gconf/defaults/05_panel-default-setup.entries | cut -f 1 -d :)"
+ prior_line="$((line_no-1))"
+ next_line="$((line_no+1))"
+
+ sed -i -n "${prior_line},${next_line}!p" /root/usr/share/gconf/defaults/05_panel-default-setup.entries
+
+ chroot /root update-gconf-defaults
+}
+
case ${ACCESS} in
access=v1)
# Lesser Visual Impairment
@@ -102,6 +120,7 @@ case ${ACCESS} in
gct -s -t bool /apps/gksu/disable-grab true
gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity
+ remove_applet fast_user_switch
;;
braille=ask)
@@ -121,6 +140,8 @@ case ${ACCESS} in
laptop_detect
chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca
fi
+
+ remove_applet fast_user_switch
;;
access=m1)