3e80e28e989d91de16cd8470ab6ce746fff16b3d
3 //#define NO_BUILTIN_XML 1
8 #include <glib/gprintf.h>
9 #include <glib/gstdio.h>
11 #include "interfaces/hostnamed/hostnamed.c"
14 gboolean
systemd_utils_init() {
18 tmp
= "/etc/"; //what the hell is /etc/xdg anyway
20 g_printf("FAILED to install configs in %s!\n", tmp
);
25 tmp
= g_get_system_data_dirs();
27 g_printf("FAILED to install xml configs in %s!\n", tmp
[0]);
38 if(!systemd_utils_init()) {
39 g_printf("failed to init, are you root?\n");
40 return 1; //TODO errno properly. grep for all "return 1;"s, not TODO'ing each one
45 mloop
= g_main_loop_new(NULL
, TRUE
);
47 g_main_loop_run(mloop
);
48 g_main_loop_unref(mloop
);