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.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18137 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff
2009-06-20 00:05:59 +00:00
parent 67654bf11c
commit 286cbca2eb

View File

@@ -51,11 +51,10 @@ _br_find_exe (GbrInitError *error)
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);