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



* Mike Hearn <mike navi cx> [2004-04-13 14:01:18 +0100]:

<snip>
> g_get_absolute_path(DATADIR ? DATADIR : "../share/myproject", "/somefile.png");

No good modeling. Better:

    g_cfprobe_dir ( 'mypackage', G_CFPROBE_DATADIR );
    g_cfprobe_dir ( 'mypackage', G_CFPROBE_SYSCONFDIR );
...

or 

    g_cfprobe_rc ( 'mypackage' );


Evrything's hidden behind these functions, which belong into something 
lile libgcfprobe.


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]