diff options
author | kremlin- <ian@kremlin.cc> | 2014-06-26 10:17:03 +0800 |
---|---|---|
committer | kremlin- <ian@kremlin.cc> | 2014-06-26 10:17:03 +0800 |
commit | 53f83ba5960811b25e6060dfb05d3ff81459e748 (patch) | |
tree | 95f1285ac3a46280aaa601f91db2f9a0abcbd712 | |
parent | e37568761299fe5228c88187dfc691330cf09f9d (diff) | |
download | systembsd-53f83ba5960811b25e6060dfb05d3ff81459e748.tar systembsd-53f83ba5960811b25e6060dfb05d3ff81459e748.tar.gz systembsd-53f83ba5960811b25e6060dfb05d3ff81459e748.tar.bz2 systembsd-53f83ba5960811b25e6060dfb05d3ff81459e748.tar.lz systembsd-53f83ba5960811b25e6060dfb05d3ff81459e748.tar.xz systembsd-53f83ba5960811b25e6060dfb05d3ff81459e748.tar.zst systembsd-53f83ba5960811b25e6060dfb05d3ff81459e748.zip |
see previous commit, forgot 'git add'..
-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; } |