aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2019-08-13 14:11:14 -0400
committerJason Woodward2019-08-13 14:11:14 -0400
commit0dba320321309295015f6353220a8a5e4749a21f (patch)
tree86c9c69e6f77dc3f127a51ff3ace116b4f2e32ec
parent5e20c91373eb91a17cfcedcb0e4f769e4e5cefd4 (diff)
downloadslapt-update-service-0dba320321309295015f6353220a8a5e4749a21f.tar.gz
fix initialization problems
-rw-r--r--src/server.c4
-rw-r--r--src/slaptService.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/server.c b/src/server.c
index ec0dbb7..87f063e 100644
--- a/src/server.c
+++ b/src/server.c
@@ -16,6 +16,7 @@
*/
#include "slaptService.h"
#include "common.h"
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -39,6 +40,9 @@ int main(void)
#endif
#ifdef SLAPT_HAS_GPGME
gpgme_check_version(NULL);
+#ifdef ENABLE_NLS
+ gpgme_set_locale(NULL, LC_CTYPE, setlocale(LC_CTYPE, NULL));
+#endif
#endif
bus = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error);
diff --git a/src/slaptService.c b/src/slaptService.c
index 0ba3eb1..8bed581 100644
--- a/src/slaptService.c
+++ b/src/slaptService.c
@@ -104,6 +104,7 @@ static gboolean slapt_service_real_refresh_cache(SlaptService *self)
rc = slapt_config_t_read(SLAPT_SERVICE_DEFAULT_RC);
+ slapt_working_dir_init(rc);
if ((chdir(rc->working_dir)) == -1)
return FALSE;