FS#47023 - [xchm] xchm not registered as (default) application for opening .chm files

Attached to Project: Community Packages
Opened by Alain Kalker (ackalker) - Tuesday, 10 November 2015, 15:01 GMT
Last edited by Balló György (City-busz) - Wednesday, 21 June 2017, 10:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Giovanni Scafora (giovanni)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

xchm.desktop specifies MimeType=application/x-chm but application/vnd.ms-htmlhelp is the IANA standard MIME type for Windows standard help files[1].
Also, shared-mime-info package has switched to using application/vnd.ms-htmlhelp, with application/x-chm as an alias[2].

With the xchm, xdg-utils and perl-file-mimeinfo packages installed, I get:

$ xdg-mime query filetype CryptoPkg\ Document.chm
application/vnd.ms-htmlhelp
$ xdg-mime query default application/vnd.ms-htmlhelp
<no output>
$ xdg-open CryptoPkg\ Document.chm
Can't call method "get_value" on an undefined value at /usr/bin/vendor_perl/mimeopen line 162.

(The error from the last command could be a bug in xdg-utils or perl-file-mimeinfo but I think that's irrelevant here).

Please add application/vnd.ms-htmlhelp as (additional) supported MIME type in xchm.desktop. Upstream has added it already, for internal use within the app[3].

[1]: http://www.iana.nl/assignments/media-types/application/vnd.ms-htmlhelp
[2]: https://bugs.freedesktop.org/show_bug.cgi?id=40976
[3]: xCHM / Code / Commit [5b779c] : http://sourceforge.net/p/xchm/code/ci/5b779c42f8402221e11327813a6923e106d15e4d/

Additional info:
* package version(s)
xchm 1.23-2
xdg-utils 1.1.1-1
perl-file-mimeinfo 0.27-1
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Balló György (City-busz)
Wednesday, 21 June 2017, 10:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  xchm 1.23-7

Loading...