diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/config.c | 7 | ||||
-rw-r--r-- | src/main.c | 6 |
3 files changed, 9 insertions, 6 deletions
@@ -4,7 +4,7 @@ CFLAGS=-Wall -Wextra -Werror DEBUGF=-O0 -v -g SRCDIR=src INTFDIR=$(SRCDIR)/interfaces -SANITY=-Wno-unused-variable -Wno-unused-parameter +SANITY=-Wno-unused-variable -Wno-unused-parameter -Wno-comment GLIBF=`pkg-config --cflags --libs glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0` diff --git a/src/config.c b/src/config.c index 2d76106..2f8a76b 100644 --- a/src/config.c +++ b/src/config.c @@ -34,6 +34,8 @@ static gchar **localed_ispect_xml, localed_dbus_xml; static gchar **timedated_ispect_xml, timedated_dbus_xml; static gchar **logind_ispect_xml, logind_dbus_xml; */ +static void set_xml_descriptors(); + static const gchar *CONFIG_KEYS[] = { "PrettyHostname", "IconName", @@ -148,9 +150,10 @@ gboolean init_xml() { return FALSE; } - //set_xml_descriptors(); + set_xml_descriptors(); } -} + return TRUE; /* kill me! */ +} /* kill me too!*/ //LEFTOFF @@ -36,13 +36,13 @@ gboolean systemd_utils_init() { g_printf("FAILED to install configs in %s!\n", tmp); return FALSE; } - /*if(!init_xml()) { - gchar **tmp; + if(!init_xml()) { + const gchar * const *tmp; tmp = g_get_system_data_dirs(); g_printf("FAILED to install xml configs in %s!\n", tmp[0]); return FALSE; - }*/ + } #endif return TRUE; } |