Re: [orca-list] Saving profiles on orca



2010/6/5 Andreina Mejia <andreinamejia gmail com>:

Hi everybody!

Hi :-)

I'm developing an application that have three diferents profiles to load the
interface: Blind person, Low vision person and sighted person:

1.- If the user choose Blind person, automatically active orca like screen
reader.
2.- If the user choose sighted person, automatically off orca.
3.- If the user choose Low vision person, I would like to load orca
automatically with the orca magnifier and off the screen reader.

By default, always will execute the sreen reader because I want to bring all
the facilities to the blind person.

The question is:

How can I save this profile in a file that later I could execute from my
application?

I tried calling first the gnome-magnifier, thus the user could look for the
orca's preferences and activate the orca magnifier that is better than
gnome-magnifier, but this solution is not so comfortable to the user :(

Well, I was working some time ago in a similar project for the
distrubution Guadalinex[1]. And we found that Orca did store all the
preference in one file ( ~/.orca/user-settings.py) which can be
overwride with another file ( ~/.orca/orca-customizations.py), so we
created few different versions of this file and created by hand the
profiles.

Actually our profiles where more compicated because were also for
motricity issues and more stuff, so we had to deal with files and
GConf keys. We were using Sabayon for creating the entire profiles and
we created a extra tab for users-admin tool (from the GNOME System
Tools) to choose and apply the profiles.
The Gconf keys are used by the applications when you change them, but
for the files you have to launch or re-launch the app so the settings
can be loaded. That's the case of Orca.

I don't know if this is kind of what you want to do, but I guess that
you should create an orca-customizations.py file per each profile and
copy to the user's ~/.orca/ directory and the re-launch Orca.
If you don't need stuff from another aplications probably you don't
need to deal with Gconf or so.

But you should keek in mind, anyway, that the Orca settings are going
to be migrated[2] soonish to GConf.

I hope this help and good luck with your app. Btw, I'd love to know
about it the it be ready ;-)

Cheers

[1] http://www.guadalinex.org
[2] https://bugzilla.gnome.org/show_bug.cgi?id=619398
-- 
Juanje



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