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; able class='tabs'> aboutsummaryrefslogtreecommitdiff
path: root/gnu/system/pam.scm
AgeCommit message (Expand)Author
2023-05-21system: pam: Change 'stop' method to return #f....When the 'stop' method returns a truth value, shepherd interprets it as potential failure and logs it. * gnu/system/pam.scm (pam-shepherd-service): Change 'stop' method to return #f. Ludovic Courtès
2023-05-11system: pam: Let PAM extensions add shepherd requirements....* gnu/system/pam.scm (<pam-extension>): New record type. (pam-shepherd-service): Add Shepherd synchronization point. * gnu/services/mail.scm (dovecot-shepherd-service) * gnu/services/lightdm.scm (lightdm-shepherd-service) * gnu/services/mail.scm (opensmtpd-shepherd-service) * gnu/services/sddm.scm (sddm-shepherd-service) * gnu/services/ssh.scm (lsh-shepherd-service, openssh-shepherd-service) * gnu/services/xorg.scm (slim-shepherd-service, gdm-shepherd-service) * gnu/services/base.scm (greetd-shepherd-services): Add PAM requirement. * gnu/system/pam.scm (/etc-entry, extend-configuration, pam-root-service-type, pam-root-service) * gnu/services/authentication.scm (pam-ldap-pam-service) * gnu/services/base.scm (pam-limits-service-type) (greetd-pam-service) * gnu/services/desktop.scm (pam-gnome-keyring) * gnu/services/kerberos.scm (pam-krb5-pam-service) * gnu/services/pam-mount.scm (pam-mount-pam-service): Adapt to use pam-extension. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Josselin Poiret