summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0ba65b0b8a..0713bc8d66 100644
--- a/src/main.c
+++ b/src/main.c
@@ -55,6 +55,7 @@
#include "nm-posix-signals.h"
#include "nm-session-monitor.h"
#include "nm-dispatcher.h"
+#include "nm-utils.h"
#if !defined(NM_DIST_VERSION)
# define NM_DIST_VERSION VERSION
@@ -401,6 +402,13 @@ main (int argc, char *argv[])
exit (1);
}
+ if (!nm_utils_init (&error)) {
+ fprintf (stderr, _("Unable to initialize NetworkManager libraries: %s\n"),
+ error->message);
+ g_error_free (error);
+ exit (1);
+ }
+
for (i = 0; options[i].long_name; i++) {
if (!strcmp (options[i].long_name, "log-level")) {
options[i].description = g_strdup_printf (options[i].description,