[packages/keepass] use xdg-open to open chm docs
glen
glen at pld-linux.org
Sat Jan 24 20:46:32 CET 2015
commit 3997c1b91ed40c1a09a88a3133a25fb2ba4a3f4f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Jan 24 21:46:25 2015 +0200
use xdg-open to open chm docs
keepass-enable-local-help.patch | 6 +++---
keepass.spec | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/keepass.spec b/keepass.spec
index 83dd5d9..b2f3b62 100644
--- a/keepass.spec
+++ b/keepass.spec
@@ -32,6 +32,7 @@ BuildRequires: tar >= 1:1.22
BuildRequires: xz
Requires: hicolor-icon-theme
Requires: libgdiplus
+Requires: xdg-utils
Requires: xdotool
Requires: xsel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
diff --git a/keepass-enable-local-help.patch b/keepass-enable-local-help.patch
index bd6c67f..c653e72 100644
--- a/keepass-enable-local-help.patch
+++ b/keepass-enable-local-help.patch
@@ -2,7 +2,7 @@ From: Julian Taylor <jtaylor.debian at googlemail.com>
Date: Tue, 12 Jul 2011 21:51:43 +0200
Subject: enable local help
-disable windows chm viewer and use x-www-browser to view docs
+disable windows chm viewer and use xdg-open to view docs
located as html files in "/usr/share/doc/keepass2/Chm/help/"
Forwarded: not-needed
---
@@ -47,11 +47,11 @@ Forwarded: not-needed
- strCmd += "\"";
-
- try { Process.Start(WinUtil.LocateSystemApp("hh.exe"), strCmd); }
-+ try { Process.Start("x-www-browser", strCmd); }
++ try { Process.Start("xdg-open", strCmd); }
catch(Exception exStart)
{
- MessageService.ShowWarning(@"hh.exe " + strCmd, exStart);
-+ MessageService.ShowWarning(@"x-www-browser " + strCmd, exStart);
++ MessageService.ShowWarning(@"xdg-open " + strCmd, exStart);
}
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/keepass.git/commitdiff/3997c1b91ed40c1a09a88a3133a25fb2ba4a3f4f
More information about the pld-cvs-commit
mailing list