From 8871376f6dccc33a6769b45cec4f1922c44b6c59 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 24 Apr 2009 23:42:11 -0300 Subject: Force opening the report using URLs (should fix some issues with the default browser) --- hardinfo2/report.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hardinfo2') 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); } -- cgit v1.2.3