Summary: | Windows MSI installers incorectly idendified as "Microsoft Word Document" | ||
---|---|---|---|
Product: | [Applications] kfile | Reporter: | David Pottage <david> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
David Pottage
2005-03-06 11:11:38 UTC
Not a bug. The msi file type isn't present, so it's a wishlist to add one. I wonder why, because you can't install them... If it is an unknown file type, then why is not just shown as 'Unknown' ? To have it incorrectly identified as something else is needlessly confusing, especialy as it can be identified purley from it's file extension It actually isn't known. The KDE file-type matching algorithm works in two phases. One is to check the file name for matches, like *.doc or lib* (hence, no concept of "extensions"). If no match is found, we then proceed to check the file's contents. That how we can find text files that aren't named *.txt or *.log or etc.. That means we can catch a lot more files than Windows, for instance, can. The problem here is that the content signature for Microsoft Word Documents is matching those MS Installer files. The "magic" has to be reviewed, or a file type matching *.msi has to be added. How easy would it be for me to make the necessary changes to the file matching magic? My KDE system is installed from binary debian packages. Is it possible to get at the magic without installing KDE from sources? Is the format specification similar to that used by the file utility? Where do the magic files live? where can I find a format specificaton? If I do make the necessary changes, can I email a patch to you? Check what "file" detects the file as. He's said file(1) detects it as "Microsoft Office Document". Sorry :) If I'm not mistaken, the following should work: 1. Create a text file 'x-msi.desktop' with the following content: [Desktop Entry] Encoding=UTF-8 MimeType=application/x-msi Comment=Microsoft Installer Type=MimeType Patterns=*.msi;*.MSI 2. Install the file in $KDEDIR/share/mimelnk/application Moving from "kio/kfile" component to "kfile" product, helps sorting out duplicates. MSI is not a preinstalled known file type in KDE Frameworks 5. Correction: "...is NOW a preinstalled known file type..." |