r23287 - gnucash/trunk/src/app-utils - Gnc-Prefs: make the prefs migration actually do something on Windows

Geert Janssens gjanssens at code.gnucash.org
Tue Oct 8 16:25:51 EDT 2013


Author: gjanssens
Date: 2013-10-08 16:25:51 -0400 (Tue, 08 Oct 2013)
New Revision: 23287
Trac: http://svn.gnucash.org/trac/changeset/23287

Modified:
   gnucash/trunk/src/app-utils/gnc-gsettings.c
Log:
Gnc-Prefs: make the prefs migration actually do something on Windows

.. which is more than simply not crashing

Modified: gnucash/trunk/src/app-utils/gnc-gsettings.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-gsettings.c	2013-10-08 17:55:41 UTC (rev 23286)
+++ gnucash/trunk/src/app-utils/gnc-gsettings.c	2013-10-08 20:25:51 UTC (rev 23287)
@@ -565,7 +565,7 @@
     xmlParserInputPtr ret;
     warningSAXFunc warning = NULL;
         xmlChar *newURL;
-    gchar *tmpdir = g_build_filename (g_getenv ("HOME"), ".gnc-migration-tmp", NULL);
+    gchar *tmpdir = g_build_filename (g_get_home_dir (), ".gnc-migration-tmp", NULL);
 
     int i;
     const char *lastsegment = URL;



More information about the gnucash-changes mailing list