From c0c0398de1b91bfd78efb2d17ed1981db8c4f753 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Wed, 23 Nov 2005 22:41:21 +0000 Subject: [PATCH] Consolidate the creation of all file names under ~/.gnucash, and also the checks for the existence of ~/.gnucash and ~/.gnucash/books. Add better error messages when there is a problem. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12024 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/app-utils/file-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app-utils/file-utils.c b/src/app-utils/file-utils.c index f52ec3c62f..8fbca15881 100644 --- a/src/app-utils/file-utils.c +++ b/src/app-utils/file-utils.c @@ -32,6 +32,7 @@ #include "file-utils.h" #include "gnc-engine.h" +#include "gnc-filepath-utils.h" #include "gnc-gkeyfile-utils.h" /* This static indicates the debugging module that this .o belongs to. */ @@ -186,8 +187,7 @@ gnc_find_state_file (const gchar *url, basename = g_path_get_basename(url); DEBUG("Basename %s", basename); - original = g_build_filename(g_get_home_dir(), ".gnucash", - "books", basename, NULL); + original = gnc_build_book_path(basename); g_free(basename); DEBUG("Original %s", original);