about summary refs log tree commit diff
path: root/clients/nm-online.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/nm-online.c')
-rw-r--r--clients/nm-online.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/nm-online.c b/clients/nm-online.c
index 77a11321..ee0b5249 100644
--- a/clients/nm-online.c
+++ b/clients/nm-online.c
@@ -38,6 +38,8 @@
 #include <getopt.h>
 #include <locale.h>
 
+#include "NetworkManager.h"
+
 #define PROGRESS_STEPS 15
 
 #define EXIT_FAILURE_OFFLINE     1
@@ -244,6 +246,8 @@ main (int argc, char *argv[])
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
 
+	nm_g_type_init ();
+
 	data.start_timestamp_ms = _now_ms ();
 
 	opt_ctx = g_option_context_new (NULL);