I may have a fix or a workaround. I’m not sure if it is fixed permanently or temporarily.
I noticed that every time LibreOffice launched, it was like a new volume was being mounted. I went to the system console and found LibreOffice was launching from some cryptic path through “AppTranslocation”. I looked up AppTranslocation, and it has something to do with macOS gatekeeper security and non-MacAppStore applications.
I gathered from what I read that if you initially launch an application from a disk image before moving it to your applications folder, it will go into security mode and start launching LibreOffice from a translocated path. I don’t know how or why that would throw off .ods file icons yet not affect any other LibreOffice icons. All I know is that my “fix” is working right now.
LibreOffice is no longer launching from a cryptic “AppTranslocated” path, and the icons are working properly.
I did a complete uninstall of LibreOffice. I uninstalled the application as well as:
- ~/Library/Application Support/LibreOffice/
- ~/Library/Saved Application State/org.libreoffice.script.savedState/
I re-downloaded the latest version of LibreOffice, opened the disk image, and copied the LibreOffice application to my Applications folder before I launched it for the first time.
I then launched it for the first time, created a new spreadsheet document, and saved it as an .ods file. The correct icon showed up.
Another .ods document I’ve been working on still did not display the correct icon. I opened the document and re-saved it. The correct icon immediately appeared.
I don’t know if I found the correct reason for the icon problem, and I don’t know if this is a permanent fix. But everything is working so far.
Hope that helps