[2/2] winemenubuilder: deduplicate some file open associations

Damjan Jovanovic damjan.jov at gmail.com
Thu Nov 18 03:52:10 CST 2010


Changelog:
* winemenubuilder: deduplicate some file open associations

Windows applications associate their ProgIds and MIME types with extensions:
.jfif -> pjpegfile
      -> image/jpeg
.jpe -> jpegfile
      -> image/jpeg
.jpg -> jpegfile
      -> image/jpeg
.jpeg -> jpegfile
        -> image/jpeg

Currently we generate a mapping for each extension. When the user
right-clicks a .jpeg file, there's 4 entries which do the same thing.

This patch will only generate mappings for distinct ProgIDs for a
given MIME type. So for image/jpeg it will only generate .jfif and
.jpe associations. It is pointless to generate .jpg and .jpeg
associations, since Freedesktop opens by MIME type, and the extension
is irrelevant.

Damjan Jovanovic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-winemenubuilder-deduplicate-some-file-open-associati.patch
Type: application/octet-stream
Size: 4883 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101118/968fed4f/attachment.obj>


More information about the wine-patches mailing list