On 18 January 2011 06:18, John Emmas <john...@tiscali.co.uk> wrote: > Thanks guys. In fact, I only need this for the purpose of calculating a > path that's relative to the location of the installed program. It's of less > importance on Linux because apps tend to be installed using the same path on > everyone's system so generally, one can make an intelligent guess. However, > under Windows that's not necessarily the case. I eventually solved it using > g_win32_get_package_installation_directory_of_module(NULL) - but it didn't > occur to me to check what happens if the app got started from a shortcut. > I'll check that later today. I'm not entirely sure what to do under OS-X > though. From my limited knowledge of Macs I believe the situation is > similar to Linux - i.e. the user gets no choice over where to install an > app, so the path will typically be identical for most users. Is that a > reasonable assumption? > > For Libgda, I use some code initially produced by AutoPackage to enable binary relocation on Linux, Windows and MacOSX, see the code in http://git.gnome.org/browse/libgda/tree/libgda/binreloc.
Regards, Vivien _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list