Re: [orca-list] Programatically detecting if Orca is running
- From: Didier Spaier <didier slint fr>
- To: orca-list gnome org
- Subject: Re: [orca-list] Programatically detecting if Orca is running
- Date: Sun, 12 Apr 2020 22:23:37 +0200
Hello,
#!/bin/sh
if [ "$(ps -C orca --no-headers)" != "" ]; then echo "Orca is running!"; fi
That a user has indicated somewhere that she would like to have Orca active doesn't imply that it is or even
can be.
Plenty or reasons can make this assumption wrong.
Further, there are plenty of ways to give this indication, and any test would most probably miss some of them.
Cheers,
Didier
Le 12/04/2020 à 22:09, Nolan Darilek a écrit :
Hey folks,
I'm working on a game engine accessibility project that is essentially a screen reader running inside the
engine. I'd like to enable my screen reader if I've detected that another is running. I know how to do this
under Windows via Tolk, Android via accessibility APIs, but I'm not sure how to do this for Orca. Is there
any way to detect whether Orca is running, or even better, if the user has indicated to GNOME/KDE that
they'd like the screen reader active?
If there isn't an easy way, I'll probably just check for the presence of the various magical environment
variables we've almost certainly got set to get things running, but I'd like to avoid that if possible.
And yes, I know I can technically check running processes, but that's hacky and I'd rather not. :)
Thanks.
_______________________________________________
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]