[Gvsig_english] Recent change for gvSIG 1.10 in SVN

Benjamin Ducke benjamin.ducke at oxfordarch.co.uk
Wed Jul 7 19:18:47 CEST 2010


Hi all,

I have just had a look at the recent changes in SVN and found
that the default location for gvSIG settings has been changed
from $HOME/gvSIG:

Launcher.java now has this:

  andamiConfigPath = System.getProperty("user.dir") +  File.separator + "andami-config.xml";
  pluginsPersistencePath = System.getProperty("user.dir") + File.separator + "plugins-persistence.xml";

Are you all sure this is a good idea? According to the Java documentation, 
"user.dir" is the "current working directory".

But:

1. If the user launches gvSIG from a shell, then "user.dir" could
be literally ANY location in the filesystem. So settings are bound
to get lost between sessions or (even worse) they get restored from
unexpected old storage locations.

2. If the user launches gvSIG via a desktop shortcut or a Mac OS
App package, then "user.dir" will always point to the gvSIG installation
folder. On a system set up for multiple users, with just one gvSIG
installation folder, this can mean total chaos, as users overwrite each 
other's settings.

All of that makes me a bit worried!
Could someone please explain the reasoning behind this change
and how it is supposed to work?

I think the ONLY reasonable place for user settings has to be
the user's home folder. If it is required to keep more than one
set of settings, then those sets should all be kept in the home
folder, perhaps in separate directories.

Cheers,

Ben


------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.



More information about the Gvsig_internacional mailing list