diff --git a/keepass-0.2.2-htmlview.patch b/keepass-0.2.2-htmlview.patch
index 9fb9799..2b2e194 100644
--- a/keepass-0.2.2-htmlview.patch
+++ b/keepass-0.2.2-htmlview.patch
@@ -5,7 +5,7 @@
BannerTextColor=ParseColorString(ini.GetValue("Options","BannerTextColor","222,222,222").c_str());
ShowPasswords=ini.GetValueB("Options","ShowPasswords",false);
-OpenUrlCommand=ini.GetValue("Options","UrlCmd","kfmclient openURL %1").c_str();
-+OpenUrlCommand=ini.GetValue("Options","UrlCmd","htmlview %1").c_str();
++OpenUrlCommand=ini.GetValue("Options","UrlCmd","xdg-open %1").c_str();
Language=ini.GetValue("Options","LangFile","").c_str();
ParseBoolString(ini.GetValue("Options","SearchOptions",(const char*)defaultSearchOptions.toUtf8()).c_str(),defaultSearchOptions,SearchOptions,9);
ListView_HidePasswords=ini.GetValueB("UI","HidePasswords",true);
diff --git a/keepassx.spec b/keepassx.spec
index 527cc7c..b630d33 100644
--- a/keepassx.spec
+++ b/keepassx.spec
@@ -1,6 +1,6 @@
Name: keepassx
Version: 0.2.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Cross-platform password manager
Group: User Interface/Desktops
@@ -14,7 +14,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: qt4-devel > 4.1, libXtst-devel, ImageMagick, desktop-file-utils
-Requires: hicolor-icon-theme, htmlview
+Requires: hicolor-icon-theme, xdg-utils
%description
KeePassX is an application for people with extremly high demands on secure
@@ -121,6 +121,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sun Oct 07 2007 Aurelien Bompard 0.2.2-4
+- use xdg-open instead of htmlview
+
* Sat Aug 25 2007 Aurelien Bompard 0.2.2-3
- fix license tag
- rebuild for BuildID