diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-01-18 12:23:38 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-01-18 12:23:38 +0000 |
commit | 856428274dd3a217a5e813ce3d55fc7bcf4fd351 (patch) | |
tree | 894326e3da062abb20f5bd424010bedb465666ef /hardinfo2/util.c | |
parent | 77cc3adfb63d9ba837da2d81f87eb4fdc38fc340 (diff) |
More syncmanager stuff
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c index e526d125..52839308 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -26,6 +26,9 @@ #include <binreloc.h> +#include <sys/stat.h> +#include <sys/types.h> + #define KiB 1024 #define MiB 1048576 #define GiB 1073741824 @@ -350,7 +353,13 @@ void parameters_init(int *argc, char ***argv, ProgramParameters * param) param->autoload_deps = autoload_deps; if (report_format && g_str_equal(report_format, "html")) - param->report_format = REPORT_FORMAT_HTML; + param->report_format = REPORT_FORMAT_HTML; + + gchar *confdir = g_build_filename(g_get_home_dir(), ".hardinfo", NULL); + if (!g_file_test(confdir, G_FILE_TEST_EXISTS)) { + mkdir(confdir, 0744); + } + g_free(confdir); } gboolean ui_init(int *argc, char ***argv) |