From 11cd6a47b174a71e108d9bd6bb5782f47085bfd9 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 24 Jan 2015 16:57:03 -0200 Subject: [PATCH] fix #309 --- src/util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index 28169b5f..ee2718b5 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1099,10 +1099,13 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific) boost::filesystem::path GetHTMLDir() { namespace fs = boost::filesystem; + fs::path sysHtmlDir("/usr/share/twister/html"); fs::path path; if (mapArgs.count("-htmldir")) { path = fs::system_complete(mapArgs["-htmldir"]); + } else if (fs::is_directory(sysHtmlDir)) { + path = sysHtmlDir; } else { path = GetDataDir() / "html"; }