29gchar *gnc_path_get_prefix()
32 return gnc_gbr_find_prefix (PREFIX);
39gchar *gnc_path_get_bindir()
42 return gnc_gbr_find_bin_dir (BINDIR);
49gchar *gnc_path_get_libdir()
52 return gnc_gbr_find_lib_dir (LIBDIR);
59gchar *gnc_path_get_datadir()
62 return gnc_gbr_find_data_dir (DATADIR);
69gchar *gnc_path_get_pkgdatadir()
71 gchar *datadir = gnc_gbr_find_data_dir (DATADIR);
72 gchar *result = g_build_filename (datadir, PROJECT_NAME, (
char*)NULL);
82gchar *gnc_path_get_pkgdocdir()
84 gchar *docdir = gnc_gbr_find_data_dir (DATADIR);
85 gchar *result = g_build_filename (docdir,
"doc", PROJECT_NAME, (
char*)NULL);
95gchar *gnc_path_get_pkgsysconfdir()
97 gchar *sysconfdir = gnc_gbr_find_etc_dir (SYSCONFDIR);
98 gchar *result = g_build_filename (sysconfdir, PROJECT_NAME, (
char*)NULL);
109gchar *gnc_path_get_pkglibdir()
111 gchar *libdir = gnc_path_get_libdir ();
114 gchar *result = gnc_gbr_find_bin_dir(libdir);
116 gchar *result = g_build_filename (libdir, PROJECT_NAME, (
char*)NULL);
127gchar *gnc_path_get_gtkbuilderdir()
129 gchar *pkgdatadir = gnc_path_get_pkgdatadir ();
130 gchar *result = g_build_filename (pkgdatadir,
"gtkbuilder", (
char*)NULL);
140gchar *gnc_path_get_localedir()
142 gchar *prefix = gnc_path_get_prefix();
143 char *locale_subdir = gnc_file_path_relative_part (PREFIX, LOCALEDIR);
144 if (prefix == NULL || g_strcmp0 (locale_subdir, LOCALEDIR) == 0)
147 g_free (locale_subdir);
148 return g_strdup (LOCALEDIR);
152 gchar *result = g_build_filename (prefix, locale_subdir, (
char*)NULL);
154 g_free (locale_subdir);
164gchar *gnc_path_get_accountsdir()
166 gchar *pkgdatadir = gnc_path_get_pkgdatadir ();
167 gchar *result = g_build_filename (pkgdatadir,
"accounts", (
char*)NULL);
179gchar *gnc_path_get_scmdir()
181 gchar *prefix = gnc_path_get_prefix ();
182 gchar *result = g_build_filename (prefix, GUILE_REL_SITEDIR, (
char*)NULL);
192gchar *gnc_path_get_reportdir()
194 gchar *scmdir = gnc_path_get_scmdir ();
195 gchar *result = g_build_filename (scmdir, PROJECT_NAME,
"report", (
char*)NULL);
205gchar *gnc_path_get_reportsdir()
207 gchar *scmdir = gnc_path_get_scmdir ();
208 gchar *result = g_build_filename (scmdir, PROJECT_NAME,
"reports", NULL);
219gchar *gnc_path_get_stdreportsdir()
221 gchar *reportdir = gnc_path_get_reportdir ();
222 gchar *result = g_build_filename (reportdir,
"reports",
"standard", NULL);
File path resolution utility functions.