View topic - .springrc location



All times are UTC + 1 hour


Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: .springrc location
PostPosted: 30 Dec 2011, 16:05 

Joined: 03 Jul 2011, 10:54
Hello, i have a quick question about .springrc

Why is it found in ~/.springrc and not in ~/.spring/.springrc ?

You might call it ocd, i call it keeping things nice and tidy. Should not one directory under home be enough for spring?


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 30 Dec 2011, 17:41 
Spring Developer

Joined: 31 May 2009, 23:08
because in .springrc you can set the path of this folder.


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 30 Dec 2011, 18:23 

Joined: 03 Jul 2011, 10:54
So if you want to have that folder somewhere else, why cannot there also be one in ~ with only .springrc left inside of it?

To assume .springrc is found in ~/.spring instead of ~ where it is currently assumed would reduce the clutter generated by spring by at least 50%

:)


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 03 Aug 2012, 08:09 

Joined: 03 Jul 2011, 10:54
So no real answer to this question?

So let's try again:

why cannot .springrc be moved to ~/.spring so all spring clutter in home directory would be confined to one place?


Last edited by varikonniemi on 03 Aug 2012, 08:10, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 03 Aug 2012, 08:10 

Joined: 03 Jul 2011, 10:54
double


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 04 Aug 2012, 00:06 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
Because springrc needs to be in a place where it can always be found because it tells the location of where to store the spring stuff (defaults to .spring).


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 04 Aug 2012, 03:02 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
that is not the reason. if we would have to ensure the file is alwyas there for each user that might run spring, which we can not, and should not, then it wold not make a difference whether we had to ensure it is in ~/ or in ~/.spring/
i don't know why it is in ~/ and i kind of agree that it would be more *nix standard to have it in ~/.spring/ instead. the general rule i see, is if the application uses a dir at all, the config file should be inside the dir.
i guess it could evne be changed now, but ... there is probably too little gain (basically only adhering to the standard) , for anyone to take upppon himself the trouble: after next release: WHAAAAA all my settings are gone!!! spring i hate you!!!!
or if we allow both locaitons, people will get confused about which one is correct now, and after some time we will have to remvoe the old locaiton anyway.
but well.. i woudl sya it is ok to move the main location to be something like ~/.spring/config.txt, and still look for ~/.springrc for a few releases, maybe can be decided in a meeting.


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 04 Aug 2012, 12:26 

Joined: 03 Jul 2011, 10:54
I don't see why copying .springrc content to config.txt could not be part of the upgrade procedure?

So lost configs should not be a problem imho.

Just because something has been done one way does not mean it has to be done like that forever. Fedora did a big decision to clean up their filesystem tree, i think spring could do this step in the same spirit, if there are no real downsides to it.


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 06 Aug 2012, 13:18 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
you need problem?
one can have, and more and more will have multiple enginve versions installed and at use at the same time.


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 11 Aug 2012, 11:09 
Spring Developer
User avatar

Joined: 28 Jun 2007, 06:30
We should follow XDG standard (note the fallback values in the "Environment variables" section if vars aren't set).

Also a question is if spring should follow an "all in one folder" policy or split config, cache & data?


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 18 Aug 2012, 10:13 

Joined: 03 Jul 2011, 10:54
hoijui wrote:
you need problem?
one can have, and more and more will have multiple enginve versions installed and at use at the same time.

How does the move of .springrc into .spring/ affect the ability to have multiple engine versions installed?


Top
 Offline Profile  
 
 Post subject: Re: .springrc location
PostPosted: 18 Aug 2012, 10:53 

Joined: 29 May 2010, 22:40
jK wrote:
We should follow XDG standard (note the fallback values in the "Environment variables" section if vars aren't set).

Also a question is if spring should follow an "all in one folder" policy or split config, cache & data?
Cannot find anything about multiple versions of the same software there...

My idea would be:
Code:
.config/springrts/springrc
.config/springrts/uikeys.txt
.config/springrts/0.88/springrc
.config/springrts/0.90/springrc
.config/springrts/0.90/uikeys.txt
.cache/springrts/paths/
.cache/springrts/SpringLobby/
.local/share/springrts/demos/
.local/share/springrts/maps/
.local/share/springrts/mods/


Config settings from specific engine versions would overwrite the settings in the main config dir.

The demos folder could have engine-version-dirs too, but the version is also in the filename, so that would be just makeup.

What about the pathfinder cache? Does it invalidate each version, or just sometimes? If it's each release, than subdirs would make sense. It'll allow to switch versions w/o loosing the pathing cache. In the other case file-internal metadata should be added. I still see chat msg about "[desync warning] path... checksum...." that could be avoided with some version magic.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.