<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - LibreOffice/Windows does not install MIME type for MS Word =>2007 documents"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122266">122266</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LibreOffice/Windows does not install MIME type for MS Word =>2007 documents
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.1.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mike-libreoffice@mikeymike.org.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I found this in a round-about way because of a website that was inadvertently
offering files to download but in Firefox the files came without the .docx file
extension, causing Windows (tested on 10 x64, 7 x64, XP x86) to ask the user
what they want to do with a file with no extension and no suggested app to open
it with.  Firefox described the file being of type:
application/vnd.openxmlformats-officedocument.wordprocessingml.document

However, with Word 2007 installed, Firefox would suggest Word to open the file
with and described it as a "Microsoft Word Document", or with Word installed
but LO set as the default app to open Word 2007 Documents in Windows, it would
suggest LibreOffice Writer.

After a bit of research, I added the following registry keys when Word was not
installed:

HKEY_CLASSES_ROOT\MIME\Database\Content
Type\application/vnd.openxmlformats-officedocument.wordprocessingml.document

application/vnd.openxmlformats-officedocument.wordprocessingml.document\Extension
(string): ".docx"

Which fixes the problem.  I think the other ones (Excel, PowerPoint) are
missing too, but I haven't tested those to the same degree.

On Linux x64 LO 6.0.x works fine in this regard.

Here's the contents of the .reg file I made that fixes the problem:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\MIME\Database\Content
Type\application/vnd.openxmlformats-officedocument.wordprocessingml.document]
"Extension"=".docx"



Steps to Reproduce:
1.  Download with Firefox a Word 2007 document from a website which lacks the
.docx extension.


Actual Results:
Windows asks what to do with file of type
'application/vnd.openxmlformats-officedocument.wordprocessingml.document' with
no suggested apps.


Expected Results:
LibreOffice Writer should have been the suggested app to open the file.


Reproducible: Always


User Profile Reset: No



Additional Info:</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>