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



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



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