After installing WPS-Office the mime type for DOCX files is set to application/wps-office.docx (for instance the mime type reported by this command gio info document.docx is standard::content-type: application/wps-office.docx).
I have seen that the common solution is to edit the XML files in /usr/share/mime/packages/ (in this case remove the files WPS-Office added) and then run sudo update-desktop-database /usr/share/applications and sudo update-mime-database /usr/share/mime to update the respective databases and see the changes reflected in the following archives:
/usr/share/mime/globs/usr/share/mime/globs2
This all seems to work as I see the content change from application/wps-office.docx to application/vnd.openxmlformats-officedocument.wordprocessingml.document.
But the command gio info document.docx keeps returning standard::content-type: application/wps-office.docx and the consequence is that when uploading office files to Google Drive those get the wrong mime type and are not recognized as valid Office files.
Is there another way to influence the mime type mapping so that gio info document.docx will start returning the correct mime type value (application/vnd.openxmlformats-officedocument.wordprocessingml.document)?
I want to keep WPS-Office installed...