[Bug 25166] Multiple mime type handling registered for different file extensions

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Nov 17 03:50:22 CST 2010


--- Comment #4 from quentin.denis at gmail.com 2010-11-17 03:50:21 CST ---
Well, I have a lack of knowledge about MIME type handling, but I know that
Crossover Office does register only one "Open with" entry for a .ppt file, i.e.
The same happens on Windows, you get only one open with entry.

What I do, is to edit the assocations with the KDE window that enables me to do
so (KEditFileType). As shown on the screenshot, I have multiple types registred
(.pot, .pps, .ppt, .ppz) and I simply remove the unnecessary "Microsof Office
PowerPoint" entries of the multiple associations.

The only difference in wine-extension-docx/doc.desktop is the exec line:
Exec=wine start /ProgIDOpen Word.Document.12 %f
Exec=wine start /ProgIDOpen Word.Document.8 %f
Is it not possible to generalize that Word.Document.* thing?

Or another approach, why do I have a wine-extension-docx.desktop file
associated to a .doc file? That is exactly the issue illustrated on the
screenshot, too many types (.pot, .pps, .ppt, .ppz) are associated to to many
desktop-files (wine-extension-{pot,pps,ppt,ppz}.desktop. Can't we have single
associations, like .doc -> wine-extension-doc.desktop and .docx ->
wine-extension-docx.desktop seperately?

(In reply to comment #3)
> Windows uses MIME types very little. Applications register with extensions, and
> MIME types for those extensions are optional. On the freedesktop.org side of
> things, applications register with MIME types. What Wine must do is scan the
> list of file types, discover/invent a MIME type, then register applications
> with the MIME types. Complicating matters is that a file can have multiple MIME
> types, and an application can open multiple MIME types too. So a right-click
> menu can easily list the same application multiple times, each time for a
> different MIME type. It would maybe be a good idea to change the "Open with"
> entries to "Microsoft Office PowerPoint (like a .ppt file)", "Microsoft Office
> PowerPoint (like a .txt file)", etc. so it's clearer what happens. There is no
> way to de-duplicate these, because we can't predict what different MIME types
> an arbitrary file will have.
> Messing with prefixes is unlikely to duplicate MIME handler entries since they
> all go to ~/.local/share/applications where they'd overwrite each other instead
> of duplicating. If you disagree attach your ~/.local/share/applications.
> Adding icons to the "Open with" menu is a good idea. I'll investigate when I
> have time.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list