Re: [orca-list] Changed the user's preference directory



Hi Steve,

        Copy and paste from Freedesktop.org specification [1]:

$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

[1]: http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html

Cheers,

El 26/07/10 15:03, Steve Holmes escribió:
Just where is this SDG-DATA-HOME/ directory supposed to be located.  I
assume this name you gave is an environment variable of somekind? That
is not found in my environment at this time.  I have no SDG anything
in my home directory.  So can someone enlighten me further on this?
If I migrate the orca data, where will it actually go?  I guess I
could experiment but sure don't wanna lose it nor be unable to verify
its contents wherever it is.

Thanks for the help.

On Mon, Jul 26, 2010 at 05:36:47AM +0200, Juanje Ojeda wrote:
Hi :-)

I've just pushed two patches[1][2] to the master in order to fix this bug:
https://bugzilla.gnome.org/show_bug.cgi?id=596108

The bug is about to use XDG locations for storing configuration files.
XDG locations are the Freedesktop.org ones:
http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html

This is important because two reasons:
  * This is a goal for GNOME to have moved all the user's configs to
XDG locations[3]
  * It's crossdesktop solution

We know there is people here using the Orca master's version and the
one from their distro and to move their ~/.orca to XDG-DATA-HOME/orca
could be a problem because the one from the distro won't know anything
about this new location.
That's why right now the migration is optional. Let's see with some user cases:
  * New user install the version from master. He/she hasn't run Orca
before so hasn't got any configs stored at ~/.orca.
When the user run Orca the first time, it will create the
configuration files at XDG-DATA-HOME/orca
  * Betatester is using the version from his/her distro but also is
testing the last version from master. To be able to switch from one to
another version keeping the configs, the config directory must be
~/.orca. The one that understand both versions.
By default, the new code from master won't change anything, so this
case is safe.
  * User want to have the last version from the master and just that
version. The new code has a new command line option for migrating the
config files ('-m, --migrate-config').
If the user pass this option the ~/.orca directory will be moved to
XDG-DATA-HOME/orca.

The idea is to change the default behavior just before the release,
when the betatesters won't need so much to main both versions. Then
the migrate option will be deleted and the default behaviour will be
to use XDG-DATA-HOME and if ~/.orca exists, this will me moved to the
new location.

I'm not sure if I've explain myself well but the lasts comments at the
bug maybe can clarify it. I think Joanmarie can explain better things
than me :-)

Cheers :-)

[1] http://git.gnome.org/browse/orca/commit/?id=759c61df50e61c92c274cf5a9461945bd267d54b
[2] http://git.gnome.org/browse/orca/commit/?id=49af893c1894821ef0f868aebf75e42c716db8ef
[3] http://live.gnome.org/GnomeGoals/XDGConfigFolders
--
Juanje
_______________________________________________
orca-list mailing list
orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Netiquette Guidelines are at http://live.gnome.org/Orca/FrequentlyAskedQuestions/NetiquetteGuidelines
Log bugs and feature requests at http://bugzilla.gnome.org
Find out how to help at http://live.gnome.org/Orca/HowCanIHelp
_______________________________________________
orca-list mailing list
orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Netiquette Guidelines are at http://live.gnome.org/Orca/FrequentlyAskedQuestions/NetiquetteGuidelines
Log bugs and feature requests at http://bugzilla.gnome.org
Find out how to help at http://live.gnome.org/Orca/HowCanIHelp


--
Alejandro Leiva



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