From: Christian Dywan Date: Sat, 21 Feb 2009 23:04:28 +0000 (+0100) Subject: Load documentation as a proper file:// URI X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d42b7453afa785850ac89e78a4dba2d0e67f381;p=midori Load documentation as a proper file:// URI --- 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";