Re: Proposal: an addition to glib for getting the absolute path of the current binary.
- From: Enrico Weigelt <weigelt metux de>
- To: gtk-devel-list gnome org
- Subject: Re: Proposal: an addition to glib for getting the absolute path of the current binary.
- Date: Tue, 13 Apr 2004 17:44:15 +0200
* James Henstridge <james daa com au> [2004-04-13 22:33:05 +0800]:
<snip>
> The simplest approach for this would be something like this:
>
> 1. get the executable's path
> 2. if the path for the executable matches the configure time
> defaults, use the configure time defaults for things like sysconfdir
> 3. if the path doesn't match, assume that prefix is ".." relative to
> the executable's path, and datadir=$prefix/share, etc.
>
> Does this sound workable?
You forgot:
0. getenv()
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT services
phone: +49 36207 519931 www: http://www.metux.de/
fax: +49 36207 519932 email: contact metux de
cellphone: +49 174 7066481
---------------------------------------------------------------------
-- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
---------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]