Re: [Freeciv-Dev] Some suggestions/questions.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Daniel Sjolie wrote:
> On 1999-05-24 21:49:17, Martin Willemoes Hansen wrote:
> > 4. Will 1.8.1 support home dirs? Like ~/freeciv
> > 4a. A maps/scenarios, mods, savegames and tiles dir in ~/freeciv would
> > make sence.
>
> I agree...
> I already have one using symlinks but it would be nice
> if this was done the right way...
I think a neat way to do this would be to make the datadir
PATH-like. That is, a list of directories searched in order.
If the env variable is not set, it could default to, in order:
./data (ie, in the current dir)
~/freeciv (ie, $HOME/freeciv) (or should that be ~/.freeciv ?)
the configured install directory (eg /usr/local/share/freeciv)
Then you could have a version of freeciv installed, a newer version
in the current dir, and some extra downloaded tiles in ~/freeciv,
and it would all work :-) (Plus a script which sets the environment
variable to something entirely different :-)
-- David
(so, ~/freeciv vs ~/.freeciv ?)
(the client and server rc files could also go in ~/.freeciv)
(or search for the client and server rc files in datadir :-)
|
|