springsettings.cfg

springsettings.cfg

Requests for features in the spring code.

Moderator: Moderators

Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

springsettings.cfg

Post by Regret »

Move springsettings.cfg from

C:\Documents and Settings\<user>\Local Settings\Application Data\springsettings.cfg

to main spring folder. Or at least option to have it in spring folder.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: springsettings.cfg

Post by imbaczek »

spring.exe supports -C configfile option. bug lobby authors to support it.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: springsettings.cfg

Post by Auswaschbar »

Most probably you won't have write access to program files as a normal user. Running springsettings as admin is a inexcusable security risk, so its common sense to put it where it is now.

How you can change it was already explained.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: springsettings.cfg

Post by jK »

what's with luaUI? (it needs write access to LuaUI/Config/...)
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: springsettings.cfg

Post by imbaczek »

that's a good question. it should have it's own user dir, I guess.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: springsettings.cfg

Post by Auswaschbar »

We could change the installer to install all user files to the user's directory where he has write access, but that caused epic flame and hate last time I suggested it :?
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: springsettings.cfg

Post by Regret »

Could you at least make it so that when the cfg file is present in the main spring folder it will load config only from it?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: springsettings.cfg

Post by jK »

I prefer it too to have all stuff in the spring maindir, but it should autodetect if there is no write access and use the homedirs then.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: springsettings.cfg

Post by Regret »

jK wrote:I prefer it too to have all stuff in the spring maindir, but it should autodetect if there is no write access and use the homedirs then.
This.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: springsettings.cfg

Post by imbaczek »

bah work work more work? even if i'm +1...
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: springsettings.cfg

Post by dizekat »

why the heck theres this idea in first place that it should put config into a binary's install dir? Even if its writable.
Could anyone here actually post any benefits for that? Besides fixing the temporary "zomg my config is gone?" issue.

Drawbacks are: confusion for users (some will have in install dir, some in user config), more potential for bugs (AFAIK vista will report you that install folder is writable but put actual config files into special folder, in your user home), some extra weird platform specific behaviour (nobody wants to have config in install folder on linux anyway, so thatd be windows only).
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: springsettings.cfg

Post by Pxtl »

Some people are really attached to the pre-windows way of doing things where you could manually manage your application as a simple ball of files, rather than having to deal with all the ways it muddies-up your computer in various folders.

They want everything (maps, lua, executable, mods, config) in the same folder.

Meanwhile, modern way is to have different locations based on whether the OS user needs to write to them, and whether other OS users will want to read from there. Which is great, but it means that the user doesn't know where the hell all his files are that are relevant to this app.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: springsettings.cfg

Post by Regret »

Some people like everything in one place as opposed to spread out across whole hd. Also it allows for great portability.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: springsettings.cfg

Post by lurker »

If there is a config in the install dir, it should always use that. I don't know about putting one there by itself, unless you install outside of program files. Any program put outside of program files should stay as self-contained as possible.
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: springsettings.cfg

Post by dizekat »

Well...almost all applications which have installer don't store config alongside binary.

Furthermore, there are a ton of tools for making apps "portable" as in working from usb drive.
Last edited by dizekat on 16 Jan 2009, 16:17, edited 1 time in total.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: springsettings.cfg

Post by Regret »

dizekat wrote:Well...almost all applications which have installer don't store config alongside binary.
Bit offtopic, but it would be great to have a non-installer version of spring :D
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: springsettings.cfg

Post by lurker »

Plenty of apps become portable by placing the config file next to the binary. It's a very clean and common method.
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: springsettings.cfg

Post by dizekat »

lurker wrote:Look at how many apps become portable by placing the config file next to the binary. It's a very clean and common method.
list those apps?
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: springsettings.cfg

Post by dizekat »

Actually I'm all for lurker's idea, if there is config alongside binary, use it, and save changes to config here, otherwise use config in home folder and save changes to home folder. Sounds clean enough.

But I myself *absolutely* don't need it (using Linux anyway). Even if I were using windows and wanted to play spring from flash drive on different computers... guess what. I'd want different configuration on those different computers anyway, because of different graphics cards and/or displays.
(assuming I play on each of those computers more than once. Even if I play once, i still will have to edit config for a computer)

I say, someone who needs this feature should implement it in springlobby, and maintain it. Because implementing/maintaining a feature you absolutely don't need and never use completely fails.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: springsettings.cfg

Post by Regret »

dizekat wrote:list those apps?
http://en.wikipedia.org/wiki/List_of_po ... uter_games
dizekat wrote:I say, someone who needs this feature should implement it in springlobby, and maintain it. Because implementing/maintaining a feature you absolutely don't need and never use completely fails.
That's the spirit mister developer!
Post Reply

Return to “Feature Requests”