Re: Proposal: an addition to glib for getting the absolute path of the current binary.
- From: Sven Neumann <sven gimp org>
- To: Hongli Lai <h lai chello nl>
- Cc: gtk-devel-list gnome org
- Subject: Re: Proposal: an addition to glib for getting the absolute path of the current binary.
- Date: 13 Apr 2004 11:52:13 +0200
Hi,
Hongli Lai <h lai chello nl> writes:
> This *can't* be in a seperated library. We've developed BinReloc, a
> small library for relocation. We talked to the Gimp maintainer. He
> doesn't want to accept it unless it's in glib!
You slightly misunderstood me then. I said that it should be
considered to put the function that determines the full path to the
executed binary into glib. This function is platform-specific and
since glib does to some extent serve as a compatibility layer it would
probably fit well there. The platform-independent part can then go
into the application. For GIMP it would probably be located in
libgimpbase/gimpenv.c where a similar function for win32 exists
already. Since it's our goal to remove all platform specific code from
GIMP, I would welcome to see this being abstracted into glib. A
prerequisite is of course that a simple and clean API can be found and
that there's a chance to implement it in a sane manner.
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]