[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#711198: pu: package brltty/4.4-10wheezy1



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: pu

Hello,

I would like to upload the following changes to wheezy. I have tested
that automatic enabling of accessibility does work this way too.

Samuel

brltty (4.4-10wheezy1) wheezy; urgency=low

  * As discussed in bug Bug#705599, synchronize with finish-install on the
    method to enable accessibility in the installed system when accessibility
    was enabled in the installer.
  * Also enable sound events at gdm banner.

diff -Nru brltty-4.4/debian/brltty-udeb.prebaseconfig brltty-4.4/debian/brltty-udeb.prebaseconfig
--- brltty-4.4/debian/brltty-udeb.prebaseconfig	2013-04-08 21:34:38.000000000 +0200
+++ brltty-4.4/debian/brltty-udeb.prebaseconfig	2013-06-05 13:41:27.000000000 +0200
@@ -81,17 +81,28 @@
             fi
         fi
 
+	# Gnome 2
 	/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/applications/at/screen_reader_enabled true" Debian-gdm || true
 
-	/bin/in-target su -s /bin/sh -c 'eval $(dbus-launch) ; export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID ; GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.a11y.applications screen-reader-enabled true' Debian-gdm || true
+	mkdir -p /target/usr/share/glib-2.0/schemas
+	cat > /target/usr/share/glib-2.0/schemas/15_brltty.gschema.override <<END
+# Setup by debian-installer (via finish-install.d/07brltty) since
+# braille support was enabled during initial installation
+
+[org.gnome.desktop.a11y.applications]
+screen-reader-enabled=true
+
+[org.gnome.desktop.sound]
+event-sounds=true
+END
+
+	in-target dpkg-trigger --no-await /usr/share/glib-2.0/schemas || true
+	in-target dpkg --triggers-only -a || true
 
 	db_get passwd/username
 	USERNAME="$RET"
 	if [ -n "$USERNAME" ]
 	then
-		# Gnome 3
-		/bin/in-target su -s /bin/sh -c 'eval $(dbus-launch) ; export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID ; GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.a11y.applications screen-reader-enabled true' "$USERNAME" || true
-
 		# Gnome 2
 		/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/interface/accessibility true" "$USERNAME" || true
 		/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/applications/at/visual/startup true" "$USERNAME" || true


Reply to: