mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Replace string literal 'gnucash' with PROJECT_NAME parameter where it makes sense
The idea behind this is to not assume the project is always built as "gnucash" exactly. One example where it can be useful to use a different project name would be when building multiple development versions of the project on the same system and don't want these different versions share the same settings in GSettings or the same stored passwords.
This commit is contained in:
@@ -107,7 +107,7 @@ TEST_F(PathTest, gnc_path_get_datadir)
|
||||
TEST_F(PathTest, gnc_path_get_sysconfdir)
|
||||
{
|
||||
gchar *dirname = gnc_file_path_relative_part(PREFIX, SYSCONFDIR);
|
||||
gchar *sysconfpath = g_build_filename(m_prefix, dirname, "gnucash", NULL);
|
||||
gchar *sysconfpath = g_build_filename(m_prefix, dirname, PROJECT_NAME, NULL);
|
||||
g_free(dirname);
|
||||
#ifdef ENABLE_BINRELOC
|
||||
EXPECT_STREQ(gnc_path_get_pkgsysconfdir(), sysconfpath);
|
||||
@@ -119,7 +119,7 @@ TEST_F(PathTest, gnc_path_get_sysconfdir)
|
||||
g_free(sysconfpath);
|
||||
g_unsetenv("GNC_UNINSTALLED");
|
||||
g_unsetenv("GNC_BUILDDIR");
|
||||
sysconfpath = g_build_filename(SYSCONFDIR, "gnucash", NULL);
|
||||
sysconfpath = g_build_filename(SYSCONFDIR, PROJECT_NAME, NULL);
|
||||
EXPECT_STREQ(gnc_path_get_pkgsysconfdir(), sysconfpath);
|
||||
g_free(sysconfpath);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user