Allow the configuration file to be specified via an environment variable. diff --git a/src/gclue-config.c b/src/gclue-config.c index 7ab2a67..e41f3df 100644 --- a/src/gclue-config.c +++ b/src/gclue-config.c @@ -332,6 +332,11 @@ static void gclue_config_init (GClueConfig *config) { GError *error = NULL; + const char *config_file_path; + + config_file_path = g_getenv ("GEOCLUE_CONFIG_FILE"); + if (!config_file_path) + config_file_path = CONFIG_FILE_PATH; config->priv = gclue_config_get_instance_private(config); config->priv->key_file = g_key_file_new (); @@ -341,7 +346,7 @@ gclue_config_init (GClueConfig *config) &error); if (error != NULL) { g_critical ("Failed to load configuration file '%s': %s", - CONFIG_FILE_PATH, error->message); + config_file_path, error->message); g_error_free (error); return; r>
aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-09-09 12:22:14 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-09-09 12:22:14 +0200
commit94ca5b4357af8f8921f0cb0873a7cf316f13aa69 (patch)
tree6ef30120737f26f298f7f17d86597b0b729517e0 /gnu
parent6750c114e3e988249f4069d0180316c6d0192350 (diff)
parentdb61bdd7f52270a35bd0a3a88650d98276dab20b (diff)
downloadguix-94ca5b4357af8f8921f0cb0873a7cf316f13aa69.tar.gz
guix-94ca5b4357af8f8921f0cb0873a7cf316f13aa69.zip
Merge branch 'master' into emacs-team
Diffstat (limited to 'gnu')