Linux style settings under windows - Page 2

Linux style settings under windows

Requests for features in the spring code.

Moderator: Moderators

El Capitano
Posts: 156
Joined: 13 Oct 2006, 10:48

Post 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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post 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: '-')
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post 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. :wink:
Last edited by Kloot on 27 Nov 2006, 15:35, edited 1 time in total.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

spring -config <filename>
- Can use an absolute path
- Relative paths will be based in the Spring $datadir
El Capitano
Posts: 156
Joined: 13 Oct 2006, 10:48

Post by El Capitano »

Kloot wrote:BTW, you don't need admin-rights to write a textfile. :wink:
That depends on where you want to put the text file.
El Capitano
Posts: 156
Joined: 13 Oct 2006, 10:48

Post 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.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
Post Reply

Return to “Feature Requests”