@ -85,8 +85,8 @@ gnc_print_unstable_message(void)
/* Priority of paths: The default is set at build time. It may be
overridden by environment variables , which may , in turn , be
overridden by command line options . */
static char * config_path = SYSCONFDIR;
static char * share_path = DATADIR;
static char * config_path = PKG SYSCONFDIR;
static char * share_path = PKG DATADIR;
static char * help_path = GNC_HELPDIR ;
static void
@ -157,6 +157,7 @@ load_system_config(void)
if ( is_system_config_loaded ) return ;
update_message ( " loading system configuration " ) ;
/* FIXME: use runtime paths from gnc-path.c here */
system_config = g_build_filename ( config_path , " config " , NULL ) ;
is_system_config_loaded = try_load ( system_config ) ;
g_free ( system_config ) ;
@ -512,12 +513,24 @@ int main(int argc, char ** argv)
gnc_print_unstable_message ( ) ;
if ( add_quotes_file ) {
gchar * prefix = gnc_path_get_prefix ( ) ;
gchar * pkgsysconfdir = gnc_path_get_pkgsysconfdir ( ) ;
gchar * pkgdatadir = gnc_path_get_pkgdatadir ( ) ;
gchar * pkglibdir = gnc_path_get_pkglibdir ( ) ;
/* This option needs to run without a display, so we can't
initialize any GUI libraries . */
gnome_program_init (
" gnucash " , VERSION , LIBGNOME_MODULE ,
argc , argv ,
GNOME_PROGRAM_STANDARD_PROPERTIES , GNOME_PARAM_NONE ) ;
GNOME_PARAM_APP_PREFIX , prefix ,
GNOME_PARAM_APP_SYSCONFDIR , pkgsysconfdir ,
GNOME_PARAM_APP_DATADIR , pkgdatadir ,
GNOME_PARAM_APP_LIBDIR , pkglibdir ,
GNOME_PARAM_NONE ) ;
g_free ( prefix ) ;
g_free ( pkgsysconfdir ) ;
g_free ( pkgdatadir ) ;
g_free ( pkglibdir ) ;
scm_boot_guile ( argc , argv , inner_main_add_price_quotes , 0 ) ;
exit ( 0 ) ; /* never reached */
}