Re: gtk win32 and env variables



On 11/5/05, David Necas (Yeti) <yeti physics muni cz> wrote:
On Sat, Nov 05, 2005 at 03:40:40PM +0100, Goran Rakić wrote:

Put this first:

... (some win32 registry code) ...

Or have a look at g_win32_get_package_installation_directory().

Very neat. Another solution for applications is to look at argv[0]. On
Windows this is always (I think) the full path to the .exe. On *nix
you need to search $PATH (including relative paths): there's
g_find_program_in_path() to help there.

John


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