mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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
This commit is contained in:
parent
1b206fe862
commit
c0c0398de1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user