--- a/KeePass/App/AppHelp.cs +++ b/KeePass/App/AppHelp.cs @@ -65,9 +65,7 @@ namespace KeePass.App { try { - string strFile = AppHelp.LocalHelpFile; - if(!string.IsNullOrEmpty(strFile)) - return File.Exists(strFile); + return Directory.Exists(@"/usr/share/doc/keepass/Chm/help/"); } catch(Exception) { Debug.Assert(false); } @@ -130,17 +128,16 @@ namespace KeePass.App // Unblock CHM file for proper display of help contents WinUtil.RemoveZoneIdentifier(strFile); - string strCmd = "\"ms-its:" + strFile; + string strCmd = "/usr/share/doc/keepass/Chm/help/"; if(!string.IsNullOrEmpty(strTopic)) { - strCmd += "::/help/" + strTopic + ".html"; + strCmd += strTopic + ".html"; if(!string.IsNullOrEmpty(strSection)) strCmd += "#" + strSection; } - strCmd += "\""; - - if(ShowHelpLocalKcv(strCmd)) return; + else + strCmd += "../index.html"; string strDisp = strCmd; try @@ -161,7 +158,7 @@ namespace KeePass.App } catch(Exception ex) { - MessageService.ShowWarning(strDisp, ex); + MessageService.ShowWarning("x-www-browser " + strDisp, ex); } }