Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37822385
en ru br
ALT Linux repos
S:2.54-alt2

Group :: File tools
RPM: keepass

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: keepass-2.35-fedora-doc.patch
Download


--- 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);
 			}
 		}
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin