Raphaël Hertzog, le Wed 17 Apr 2013 11:40:55 +0200, a écrit :
> finish-install.d/07speakup needs to be update for Wheezy and GNOME3.
> GNOME 3 uses gsettings (with dconf as underlying database) so
> the gconf commands are ineffective with Debian Wheezy.

Oops, indeed, I had updated brltty, but not the speakup case.

> Replacing those gconf commands by equivalent dconf commands
> is not possible because dbus is not yet setup during initial
> installation and dconf seems to need dbus.

For brltty, what I did for enabling the screen reader was this:

/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

db_get passwd/username
USERNAME="$RET"
if [ -n "$USERNAME" ]
then
        /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
fi

r now realize that I had not yet taken the time to find out the
equivalent of event_sounds, but this is what you have just done.

So in the end, it would rather be the attached patch, which also enables
the screen reader.

Samuel
diff --git a/finish-install.d/07speakup b/finish-install.d/07speakup
index 1cc6629..bfd587c 100755
--- a/finish-install.d/07speakup
+++ b/finish-install.d/07speakup
@@ -3,14 +3,14 @@
 if [ -n "$(lsmod | grep ^speakup_)" ]; then
        . /usr/share/debconf/confmodule
 
-       /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
+
        db_get passwd/username
        USERNAME="$RET"
        if [ -n "$USERNAME" ]
        then
-               /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
-               /bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set 
/desktop/gnome/sound/event_sounds true" "$USERNAME" || 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' 
"$USERNAME" || 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.sound event-sounds true' "$USERNAME" || true
        fi
 fi
 

Reply via email to