On 11/5/05, David Necas (Yeti) <[EMAIL PROTECTED]> 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
_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list