All pastes #985905 Raw Edit

Stuff

public text v1 · immutable
·published 2008-04-15 12:07 UTC
rendered paste body
=== modified file 'debian/changelog'
--- debian/changelog	2008-04-11 23:31:14 +0000
+++ debian/changelog	2008-04-15 12:06:13 +0000
@@ -1,3 +1,10 @@
+casper (1.131) UNRELEASED; urgency=low
+
+  * scripts/casper-bottom/30accessibility: Set gconf and orca config values as
+    root in only-ubiquity mode.
+
+ -- Luke Yelavich <luke.yelavich@canonical.com>  Tue, 15 Apr 2008 22:05:27 +1000
+
 casper (1.130) hardy; urgency=low
 
   * Handle use of debian-installer/language for locale selection

=== modified file 'scripts/casper-bottom/30accessibility'
--- scripts/casper-bottom/30accessibility	2008-03-26 10:48:52 +0000
+++ scripts/casper-bottom/30accessibility	2008-04-15 12:05:05 +0000
@@ -25,6 +25,9 @@
 
 gct() {
     if [ "$gconf_version" ]; then
+        if grep -q only-ubiquity /proc/cmdline ; then
+            chroot /root gconftool-2 "$@"
+        fi
         chroot /root sudo -u "$USERNAME" gconftool-2 "$@"
     fi
 }
@@ -65,6 +68,9 @@
 				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
+				if grep -q only-ubiquity /proc/cmdline ; then
+					cp -r /root/home/$USERNAME/.orca /root/root
+				fi
 				chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.orca
 			fi
                         gct -s -t bool /apps/gksu/disable-grab true
@@ -86,6 +92,9 @@
 				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.enableBraille = True" >> /root/home/$USERNAME/.orca/user-settings.py
+				if grep -q only-ubiquity /proc/cmdline ; then
+					cp -r /root/home/$USERNAME/.orca /root/root
+				fi
 				chroot /root chown -R $USERNAME.$USERNAME /home/$USERNAME/.orca
 			fi
                         gct -s -t bool /apps/gksu/disable-grab true