Re: Proposal: an addition to glib for getting the absolute path of the current binary.

On Fri, 09 Apr 2004 21:36:39 +0200, Enrico Weigelt wrote:
> What exactly is the problem ?

Typically loading data files.

> Why not let the machine do the recompile work ?

Many users do not wish to compile their own software. This is especially
true on server systems which should not have developer tools installed at
all for security reasons.

> What exactly do you need it for ?
> You probably need to find some resource files, configuration, etc. Where
> could the location of the binary help ?

Programs such as Gaim and the Gimp already use the Win32 version of this
API, so the need is clearly there. They work backwards from the absolute
path of the binary to get the share/whatever directory for data files,

> Could this please be located in another library, and not /
> glib.h ? Its already too big.

The Gimp developers specifically requested it be put in glib, as it is
their portability layer and is already used for such things.

thanks -mike

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]