Capital letters in mime specifications.

Pascal Pype pascal.pype at skynet.be
Tue Mar 19 11:15:14 GMT 2024


Hello Pelle,

Apparently, the mimetype handler has difficulties processing mimetypes
when capital letters are used.

For instance an xml configuration file like

<mime-info
xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/slxPkgBld-scrpt"> <comment>salix package
build script</comment> <glob pattern="SLKBUILD"/> 
    <icon name="xfce-terminal"/> 
    <sub-class-of type="application/x-shellscript"/>
  </mime-type>
</mime-info>

gives rise to a comment specification of 'application/slxPkgBld-scrpt
type' in a browser instead of the intended 'salix package build script'.
The browsers where I tested this are thunar and rox-filer.

When the mimetype specification changes from
'application/slxPkgBld-scrpt' to 'application/slx-pkg-bld-scrpt', the
intended result does appear in a browser.

Kind regards,
Pascal Pype



More information about the Pkg-freedesktop-maintainers mailing list