Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37046673
en ru br
Репозитории ALT

Группа :: Работа с файлами
Пакет: keepass

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: keepass-2.35-fedora-doc.patch
Скачать


--- 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);
 			}
 		}
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin