Created attachment 122784 [details] Just after filename change SUMMARY Dolphin loses file association upon renaming of the file. File type affected ppt, pptx etc. From local testing, it appears any doctype that is "compressed" once renamed it treats the file as a zip file and is not updated until a refresh. STEPS TO REPRODUCE 1. Have the default dolphin setup from Manjaro 2. Rename a ppt/pptx/doc/docx file OBSERVED RESULT File association is lost. Treated as a compressed file. EXPECTED RESULT File association to remain the same SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro 18.1 (available in About System) KDE Plasma Version: 5.16.4 KDE Frameworks Version: 5.61.0 Qt Version: 5.13.0 ADDITIONAL INFORMATION
I believe this is because Microsoft office documents are actually compressed archives. It only knows it's an Office document because of the extension likely.
(In reply to Justin Zobel from comment #1) > I believe this is because Microsoft office documents are actually compressed > archives. It only knows it's an Office document because of the extension > likely. It is more likely a bug in KCoreDirLister, after a file is renamed, KFileItem::refresh() is called to update the new file state, that does not update the mimetype correctly.