Improve a few comments.

This commit is contained in:
Geert Janssens 2017-09-16 19:33:56 +02:00
parent 61a90d99fb
commit 2ac118f80c
3 changed files with 11 additions and 3 deletions

View File

@ -554,6 +554,12 @@ gnc_filepath_init(gboolean create)
}
}
/* The fall back to the tmp dir is to accomodate for very restricted
* distribution build environments. In some such cases
* there is no home directory available, which would cause the build
* to fail (as this code is actually run while compiling guile scripts).
* This is worked around by continuing with a userdata directory
* in the temporary directory which always exists. */
if (!userdata_is_home)
gnc_userdata_home = userdata_home / PACKAGE_NAME;
gnc_userdata_home_exists = bfs::exists(gnc_userdata_home);

View File

@ -1,5 +1,5 @@
/***************************************************************************
* test-resolve-file-path.c
* test-userdata-dir-invalid-home.c
*
* Thu Sep 29 22:48:57 2005
* Copyright 2005 GnuCash team
@ -65,7 +65,9 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
int i;
const char *tmp_dir = g_get_tmp_dir();
/* Run usr conf dir tests with a valid and writable homedir */
/* Run usr conf dir tests with an invalid homedir
* The code should fall back to using the temporary
* directory in that case. */
g_setenv("HOME", "/notexist", TRUE);
for (i = 0; strs2[i].funcname != NULL; i++)
{

View File

@ -1,5 +1,5 @@
/***************************************************************************
* test-resolve-file-path.c
* test-userdata-dir.c
*
* Thu Sep 29 22:48:57 2005
* Copyright 2005 GnuCash team