Red Hat Bugzilla – Bug 229070
Wrong 'Exec' and 'MimeType' in kchmviewer.desktop
Last modified: 2007-11-30 17:11:57 EST
Description of problem:
The .desktop file provided with kchmviewer is slightly incorrect.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install kchmviewer
2. Open a folder with .chm files
3. Double-click on a chm file
It will tell you it doesn't know how to open the file
The file should be opened with kchmviewer
Actually the .desktop file contains two bugs:
1. "Exec=kchmviewer %U" must be "Exec=kchmviewer %f" as kchmviewer doesn't
understand URLs on command line, so it doesn't know how to open
"file:///some/where/something.chm" (and neither can open several files at once,
so %f not %F).
2. "MimeType=application/x-chm" should be "MimeType=application/chm". This is
the MIME type that Gnome assigns to chm files.
In fact application/chm is required for kde mimetypes handling, and
application/x-chm for the freedesktop mimetype handling. So I added both
and corrected the %U. Thanks for the report, should be fixed in
2.7-2 (in FC-6 and devel).