From 3d42b7453afa785850ac89e78a4dba2d0e67f381 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 22 Feb 2009 00:04:28 +0100 Subject: [PATCH] Load documentation as a proper file:// URI --- midori/midori-browser.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index c5c228b6..af7c66cb 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -2624,12 +2624,10 @@ _action_help_link_activate (GtkAction* action, if (!strncmp ("HelpContents", action_name, 12)) { #ifdef DOCDIR - uri = DOCDIR "/midori/user/midori.html"; - if (!g_file_test (uri, G_FILE_TEST_EXISTS)) - uri = "error:nodocs " DOCDIR "/midori/user/midori.html"; - #else - uri = "error:nodocs " DATADIR "/doc/midori/user/midori.html"; + uri = "file://" DOCDIR "/midori/user/midori.html"; + if (!g_file_test (DOCDIR "/midori/user/midori.html", G_FILE_TEST_EXISTS)) #endif + uri = "error:nodocs " DOCDIR "/midori/user/midori.html"; } else if (!strncmp ("HelpFAQ", action_name, 7)) uri = "http://wiki.xfce.org/_export/xhtml/midori_faq";