export proper xml FINALLY..
[systembsd.git] / src / main.h
CommitLineData
faab2eee 1#include <gio/gio.h>
2
929eb2a9 3gboolean install_conf() {
4 gchar *our_conf_uri = "systemd-utl/xml-conf/";
5 gchar **data_dir = g_get_system_data_dirs();
6
7 if(g_strcmp0(data_dir[0], NULL)) {
8 const gchar our_conf_path[256];
9 g_snprintf(our_conf_path, sizeof our_conf_path, "%s%s", *data_dir, our_conf_uri);
10 GError **errors;
11
12 /*TODO permissions w/ this */
13 g_mkdir_with_parents(our_conf_path, 0644);
fc22d298 14
d1e1db9e 15 return FALSE;
16 //return (errors[0] == NULL);
929eb2a9 17
18 } else
19 return FALSE;
20}