Menu

#938 XML Office document MIME type misidentification

1.2
closed-duplicate
libfm (316)
6
2015-05-09
2015-02-27
No

PCManFM 1.2.3 on LUbuntu 14.04.2 64bit

Here's my Short description of it:
When listing file types docx, pptx, etc... the file type comes back as a Zip archive rather than correct "Microsoft Word", "Microsoft PowerPoint", etc.. This means correct associated application like Libre Office or WPS Office does not launch.
Best explained by following two web pages.
http://forum.lxde.org/viewtopic.php?f=22&t=36684
http://lxle.net/forum/#/discussion/279/pcmanfm-confuses-mime-types-docx-and-zip/p1
Quoting from the web page:
"PCManFM's interpretation of the database information was that all open XML file were zip files. I tried to coax PCManFM to identify a .docx file correctly by putting "application/zip" in the "parent type" box but this didn't work. I noticed that the "application/zip" entry listed the initial string in the file (PX\003\004) under "file contents" with a weight of 40. I tried doing this with the .docx type and this resulted in it being identified correctly in PCManFM but then all of the open XML files (.docx, .pptx, .xlsx etc) were identified in PCManFM as .docx files. This was true whether I left them as they were or included the same string under "file contents" for each of them.

Clearly PCManFM ignores file extensions and I can find no other way to get it to differentiate between the different open XML types. When I look at the files in bless there is no hex sequence that is common to ALL .docx files and doesn't appear in ANY of the other open XML formats."

Related

Bugs: #925

Discussion

  • Lonely Stranger

    Lonely Stranger - 2015-05-09
    • labels: MIME types, XML, Office --> libfm
    • status: open --> closed-duplicate
    • assigned_to: Lonely Stranger
    • discussion: enabled --> disabled
    • Priority: 5 --> 6
     
  • Lonely Stranger

    Lonely Stranger - 2015-05-09

    This is definitely a duplicate of [#925]. Thank you very much.

     

    Related

    Bugs: #925