diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-04-24 23:42:11 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-04-24 23:42:11 -0300 |
commit | 8871376f6dccc33a6769b45cec4f1922c44b6c59 (patch) | |
tree | 6c7bcc74fc580a7ea54c21f1cb5ec4eeb213e4c0 /hardinfo2/report.c | |
parent | 04bcf66369596532695ec5204601a90ebd50976f (diff) |
Force opening the report using URLs (should fix some issues with the default browser)
Diffstat (limited to 'hardinfo2/report.c')
-rw-r--r-- | hardinfo2/report.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hardinfo2/report.c b/hardinfo2/report.c index ee7f9b55..1c97a686 100644 --- a/hardinfo2/report.c +++ b/hardinfo2/report.c @@ -629,8 +629,14 @@ static gboolean report_generate(ReportDialog * rd) gtk_dialog_add_buttons(GTK_DIALOG(dialog), GTK_STOCK_NO, GTK_RESPONSE_REJECT, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); - if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) - open_url(file); + if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { + gchar *temp; + + temp = g_strdup_printf("file://%s", file); + open_url(temp); + + g_free(temp); + } gtk_widget_destroy(dialog); } |