[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Call For Articles
Ingo Ruhnke wrote:
> > Nice... I just thought of this: I did the right things for Quadra to be
> > FHS 2.0 compliant already, this was simple, but the fact that the
> > filenames are hardcoded in the game bothers me quite a bit. For example,
> > relocatable packages are *very* cool, [...]
> There is no other way to do this, if you have a look at question 1.14
> in the Unix FAQ http://www.erlenstar.demon.co.uk/unix/faq_toc.html.
> But you could of course override the hard coded path with one set by
> an enviroment variable, an command line option or by an config file.
Yes, I already knew that trying to find your binary so you can find the
rest of the files isn't a good idea, but I was thinking of how I should
present the interface to overriding the filenames.
I'm not a big fan of environment variables for this task, but even if I
use them, what variables should I listen (set the "prefix", set a
directory that contains all the files, individual "redirections")?
As for a config file, where should I put that? At my office for example,
we have a NFS /opt (each machine type/architecture mount a specific
/opt, of course), and I think that it would be rude to require that
there be a configuration file in /etc...
Ludus Design, http://ludusdesign.com/
"First they ignore you. Then they laugh at you.
Then they fight you. Then you win." -- Gandhi