Re: [orca-list] Sudo privileges with orca



Howdy Didier,

Thanks for all the help. You put me on the right track for getting this working. It's all good now, sudo 
reads like a champ.

Here is my .xinitrc file for anyone else who may be having this issue. This will probably be use for people 
running window managers like ratpoison, or for other desktops like xfce, lxde, etc.


#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

dbus-launch
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

if [ -d /etc/X11/xinit/xinitrc.d ]; then
 for f in /etc/X11/xinit/xinitrc.d/*; do
   [ -x "$f" ] && . "$f"
 done
 unset f
fi
#accessibility for original load
export GTK_MODULES=gail:atk-bridge
export GNOME_ACCESSIBILITY=1
export QT_ACCESSIBILITY=1
export QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
export DBUS_SESSION_BUS_PID
export DBUS_SESSION_BUS_ADDRESS

exec ratpoison

Thanks,
Storm

On Fri, Oct 04, 2019 at 04:46:31PM +0200, Didier Spaier wrote:
Howdy,

sudo is not set up by default in Slint, but I tried this instead, typed
in mate-terminal:

su -c pluma  didier # I give didier's password
su -c pluma # I give root's password
su - -c pluma # I give root's password
In all cases orca speaks.

Only caveat: it doesn't always spell the first character I type, but if
I press Ctr+f to open its file menu then Esc to go back to the editor
area then Orca spells all my typing and speaks the text I have typed.

When I want have orca running after having started a graphical
environment I type orca-on. The script /usr/bin/orca-on is attached as
well as my current .xinirc. Thus should answer your last questions.

Have a good day,

Didier

On 04/10/2019 15:54, Storm Dragon wrote:
Howdy,

I may be missing something with my setup. No sudo application reads at all.

Interestingly, other people I have talked to, one using Mate, says that orca does not speak with sudo pluma. 
Another person also said that sudo applications did speak, until they tried pluma, then it didn't speak. 
After that, no other sudo app spoke either until they did a sudo killall -9 orca. After that, sudo apps 
worked again, and strangely pluma now speaks with sudo too.

That did not help in my case. So, I must be missing something that needs to be exported, or a package, or 
something. I found this on the debian wiki which is recommended for getting orca running in other desktops:

eval $(dbus-launch); export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID

I tried it here, but still nothing. Is this actually important, and should I add it to my .xinitrc?

Is there somewhere that lists everything that needs to be exported and everything that nees to be added to 
get the best a11y experience with Orca?

Thanks,
Storm

On Thu, Oct 03, 2019 at 08:19:03PM -0400, Orca-list wrote:
Still works here, ArchLinuxARM with MATE. But I think something was done to make it work, as I can remember 
some time back in old MATE around 1.14 when opening up pluma for example with sudo didn't speak. Opening it 
up with something like sudo -E may work in situations where a GTK application is run as root from a terminal 
using sudo, as that is supposed to preserve the environment, but this hasn't been necessary for some time.

Imetumwa kutoka viakula vyangu

_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Orca wiki: https://wiki.gnome.org/Projects/Orca
Orca documentation: https://help.gnome.org/users/orca/stable/
GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html


_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Orca wiki: https://wiki.gnome.org/Projects/Orca
Orca documentation: https://help.gnome.org/users/orca/stable/
GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html


#!/bin/sh
#  This script enable the orca screen reader for the user who runs it.
if [ "$(id -u)" = "0" ]; then
   echo "Start a graphical environment as root with speech is not advisable."
   echo "Please run this script as regular user."
   exit
fi
if [ -f ~/.profile ]; then
        (cd ~
        sed  "
        /SAL_USE_VCLPLUGIN/d
        /GNOME_ACCESSIBILITY/d
        /GTK_MODULES/d
        /QT_ACCESSIBILITY/d
        /QT_LINUX_ACCESSIBILITY_ALWAYS_ON/d
        /startx_output/d" .profile > .dummyprofile
        mv .dummyprofile .profile
        )
fi
        cat <<-EOF >>~/.profile
        export SAL_USE_VCLPLUGIN="gtk"
        export GTK_MODULES="gail:atk-bridge" # for GTK2
        export GNOME_ACCESSIBILITY=1
        export QT_ACCESSIBILITY=1 # for QT4
        export QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 # for QT5
        alias startx="/usr/bin/startx 1>.startx_output 2>.startx_errors"
        EOF
if [ -f ~/.config/autostart/startorca.desktop ]; then
   (cd ~/.config/autostart/
   sed -i "s/Hidden.*/Hidden=false/" startorca.desktop
   )
   gsettings set org.mate.interface accessibility true 2>/dev/null
   echo "Orca has been enabled for user $(id -nu)."
else
   echo "File ~/.config/autostart/startorca.desktop not found."
fi

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/lib/X11/xinit/.Xresources
sysmodmap=/usr/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
   xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
   xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
   xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
   xmodmap $usermodmap
fi

# Start the window manager:
if [ -x /usr/bin/ck-launch-session ]; then
        LAUNCH="ck-launch-session"
else
        LAUNCH=""
fi
if [ -x /usr/bin/dbus-launch ]; then
        LAUNCH="$LAUNCH dbus-launch"
fi
/usr/bin/setxkbmap
exec $LAUNCH /usr/bin/mate-session

_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Orca wiki: https://wiki.gnome.org/Projects/Orca
Orca documentation: https://help.gnome.org/users/orca/stable/
GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html


--
⛈🐲
Accessible low cost computers for everyone! Get your slice of the Pi: https://asliceofthepi.com
My youtube channel: https://www.youtube.com/channel/UCdaTl5vl404OaRxAJPvb8Ew
get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193

Attachment: signature.asc
Description: PGP signature



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