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",
/* it does exist, read it */
} else {
- if(!g_access(config_path, W_OK)) {
+ if(g_access(config_path, W_OK)) {
g_printf("%s\n", "no write permissions for /etc/! exiting..");
return FALSE;
} else if(g_key_file_load_from_file(config, config_path, G_KEY_FILE_KEEP_COMMENTS, NULL))
g_printf("could not read config at %s! exiting..", config_path);
return FALSE;
}
+}
gboolean init_xml() {
return FALSE;
}
- //set_xml_descriptors();
- return TRUE; //kill me!
+ set_xml_descriptors();
}
-}
-}
+ return TRUE; /* kill me! */
+} /* kill me too!*/
+
//LEFTOFF
/* gchar *posix_hostname;
return TRUE;
} */
-/*static void set_xml_descriptors() {
+static void set_xml_descriptors() {
}
g_free(config);
g_free(data_dir);
g_close(config_descr, NULL);
-}*/
+}