r18137 - gnucash/trunk/src/engine - Fix bug #586295 - Patch supplied by Daniel Harding. Use the executable module to determine
Phil Longstaff
plongstaff at code.gnucash.org
Fri Jun 19 20:05:59 EDT 2009
Author: plongstaff
Date: 2009-06-19 20:05:59 -0400 (Fri, 19 Jun 2009)
New Revision: 18137
Trac: http://svn.gnucash.org/trac/changeset/18137
Modified:
gnucash/trunk/src/engine/binreloc.c
Log:
Fix bug #586295 - Patch supplied by Daniel Harding. Use the executable module to determine
the installation directory rather than the registry contents. Allows a locally built gnucash
to use its own libraries, not the libraries in any installed version.
Modified: gnucash/trunk/src/engine/binreloc.c
===================================================================
--- gnucash/trunk/src/engine/binreloc.c 2009-06-19 16:50:08 UTC (rev 18136)
+++ gnucash/trunk/src/engine/binreloc.c 2009-06-20 00:05:59 UTC (rev 18137)
@@ -51,11 +51,10 @@
gchar *prefix;
gchar *result;
- /* From the glib docs: This function looks in the Windows
- Registry for the value #InstallationDirectory in the key
- #HKLM\Software\${package}, and if that value exists and is
- a string, returns that. */
- prefix = g_win32_get_package_installation_directory ("GnuCash", NULL);
+ /* From the glib docs: When passed NULL, this function looks
+ up installation the directory of the main executable of
+ the current process */
+ prefix = g_win32_get_package_installation_directory_of_module (NULL);
result = g_build_filename (prefix,
"bin", "gnucash-bin.exe",
(char*)NULL);
More information about the gnucash-changes
mailing list