r16014 - gnucash/trunk/src/bin - Prepend to PATHEXT and give a default TZ on Windows.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Apr 28 11:32:52 EDT 2007


Author: andi5
Date: 2007-04-28 11:32:51 -0400 (Sat, 28 Apr 2007)
New Revision: 16014
Trac: http://svn.gnucash.org/trac/changeset/16014

Modified:
   gnucash/trunk/src/bin/gnucash-bin.c
Log:
Prepend to PATHEXT and give a default TZ on Windows.

* g_find_program_in_path will find gnc-fq-{check,helper} only if . is
  added to PATHEXT
* Date::Manip needs TZ set to something reasonable (install-fq-mods.bat
  should help the user)


Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2007-04-28 15:28:44 UTC (rev 16013)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2007-04-28 15:32:51 UTC (rev 16014)
@@ -109,6 +109,17 @@
         help_path = g_strdup(path);
     if ((path = g_getenv("GNC_GCONF_PATH")))
         gconf_path = g_strdup(path);
+#ifdef G_OS_WIN32
+    {
+        /* unhide files without extension */
+        gchar *pathext = g_build_path(";", ".", g_getenv("PATHEXT"),
+                                      (gchar*) NULL);
+        g_setenv("PATHEXT", pathext, TRUE);
+        g_free(pathext);
+    }
+    /* this is needed by Date::Manip and will not hurt */
+    g_setenv("TZ", "UTC", FALSE);
+#endif
 }
 
 static gboolean



More information about the gnucash-changes mailing list