Page 2 of 2
Posted: 27 Nov 2006, 13:59
by El Capitano
Don't make Spring more reliant on having things in its install directory please, some of us want to avoid having to run as admin all the time.
Posted: 27 Nov 2006, 14:21
by trepan
spring -config <filename> ?
... else, try:
windows:
- C:\My Blah Blah Blah\... ?
- $datadir\$username.config.txt
- $datadir\config.txt
unix:
- $HOME/.springrc
Let's you share the same config file with multiple versions,
and should be fairly easy for windows users to add to their
shortcut (if they have need of using -config).
Which reminds me ... the linux and windows command line
switches should probably use the same format (and as more
linux users know what a command line is, they get to pick: '-')
Posted: 27 Nov 2006, 15:09
by Kloot
How about this scheme:
* If the user passes --config <filename> as a CL parameter, Spring searches for a file called <filename>.config.txt in <$springdir>\configs\ (creating it if necessary) and reads that one, ignoring any other locations.
* Else if the user doesn't pass the --config parameter, Spring searches <$springdir>\configs\ for <$username>.config.txt first (which would have to be placed there manually) and falls back on <$winroot>\<$docs and bla>\Spring\$username.config.txt (which also gets created if necessary) only in case that fails.
Here the advantage would be that reliance on Windows-specific stuff gets "pushed back" as far as possible, yet is still also available as a last resort for those people who don't want to pollute their Spring directory for whatever reason.
BTW, you don't need admin-rights to write a textfile.

Posted: 27 Nov 2006, 15:29
by trepan
spring -config <filename>
- Can use an absolute path
- Relative paths will be based in the Spring $datadir
Posted: 27 Nov 2006, 16:06
by El Capitano
Kloot wrote:BTW, you don't need admin-rights to write a textfile.

That depends on where you want to put the text file.
Posted: 27 Nov 2006, 16:07
by El Capitano
FWIW, I would advocate having a spring.cfg (or whatever) file in the install directory which then has an override spring.cfg somewhere in the user's area. You read the config file in the install directory first, then you read the user's config file.
Posted: 28 Nov 2006, 16:40
by Dragon45
AF - VMWare does NOT reset your harddrives in your VM images back after an exit. It only does that if you're using VMPlayer, which is the free (read: gimped) version. Get Workstation and you'll see how leet virtualization can be.
Posted: 28 Nov 2006, 22:32
by AF
No, I knwo it doesnt, I've used VMWare before.
However my universities network resets C:\ drive back to a presaved backup on logout to prevent the user changing anything.