diff options
Diffstat (limited to 'hardinfo')
-rw-r--r-- | hardinfo/util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hardinfo/util.c b/hardinfo/util.c index 4b1637d6..04790dc2 100644 --- a/hardinfo/util.c +++ b/hardinfo/util.c @@ -491,6 +491,15 @@ void parameters_init(int *argc, char ***argv, ProgramParameters * param) if (report_format && g_str_equal(report_format, "html")) param->report_format = REPORT_FORMAT_HTML; + /* html ok? + * gui: yes + * report html: yes + * report text: no + * anything else? */ + param->html_ok = TRUE; + if (param->create_report && param->report_format != REPORT_FORMAT_HTML) + param->html_ok = FALSE; + gchar *confdir = g_build_filename(g_get_user_config_dir(), "hardinfo", NULL); if (!g_file_test(confdir, G_FILE_TEST_EXISTS)) { mkdir(confdir, 0744); |