X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F30accessibility;h=4624077e6aca76c5d9cf1469b599e501b2c7d36f;hb=59835af41a8fc018b4a35c03f7d062b437d62f8a;hp=3c51fa0362ec70745ffb42df11d1458139751894;hpb=a189a70c2a4584b5fa3c954012651b256083d6ad;p=live-boot-grml.git diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility index 3c51fa0..4624077 100755 --- a/scripts/live-bottom/30accessibility +++ b/scripts/live-bottom/30accessibility @@ -57,6 +57,7 @@ remove_applet () local line_no prior_line next_line line_no="$(grep -n "$1" /root/usr/share/gconf/defaults/05_panel-default-setup.entries | cut -f 1 -d :)" + [ "$line_no" ] || return prior_line="$((line_no-1))" next_line="$((line_no+1))" @@ -115,8 +116,9 @@ case ${ACCESS} in remove_applet fast_user_switch 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/var/lib/pulseaudio + touch /root/var/lib/pulseaudio/pulse_a11y_nostart + chroot /root chown root.root /var/lib/pulseaudio/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 @@ -149,8 +151,9 @@ case ${ACCESS} in 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/var/lib/pulseaudio + touch /root/var/lib/pulseaudio/pulse_a11y_nostart + chroot /root chown root.root /var/lib/pulseaudio/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