X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fmain.c;h=a592502631d4910631567bb44c4abd08ebbd392b;hb=dc20e918f1f7baf2a349e0352bf6658e5daf6a23;hp=0c343e43faff7f869dd80b7b92ec8ec7fef3ce0b;hpb=fbc0295f6d0b50482a8f636b5ceba244e195ecaa;p=systembsd.git diff --git a/src/main.c b/src/main.c index 0c343e4..a592502 100644 --- a/src/main.c +++ b/src/main.c @@ -28,13 +28,23 @@ //#include "main/h" gboolean systemd_utils_init() { - #ifdef INSTALL - if(!config_init()) { - g_printf("%s\n", "FAILED to install configs in /etc/!"); - return FALSE; - } - #endif - return TRUE; + #ifdef INSTALL + if(!config_init()) { + gchar *tmp; + tmp = "/etc/"; //what the hell is /etc/xdg anyway + + g_printf("FAILED to install configs in %s!\n", tmp); + return FALSE; + } + 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; } int main() {