Red Hat Bugzilla – Bug 1480243
ods file detected as text
Last modified: 2017-08-11 08:27:44 EDT
Created attachment 1311767 [details]
screenshot of ods file opened as text
Description of problem:
Sometimes after saving and closing ods file via LibreOffice Calc the file has no thumbnails and is treated as a text file. When opened, it is opened in text editor.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. open some ods file in LibreOffice Calc
2. make some changes
3. save & quit
The file loses its thumbnail and is treated as a text file.
The file has its thumbnail and is treated as an ods file.
After opening the ods file in Archive Manager the issue is repaired.
I assume the ods is not corrupted, i.e. that it opens fine if manually opened from within libreoffice, i.e. the (gnome-shell?) file detection misdetected the ods
What does "opened in text editor" mean? Does it show meaningful content? XML? Garbage? Note that Writer is used as "last resort" for opening files whose type couldn't be determined.
In the screen shot its opened in gedit and the icon on the desktop is shown as a text icon. So the problem seems to be outside of LibreOffice (assuming that the file isn't actually corrupted on save). I'm unsure what "thing" does the detection here however.
How about opening nautilus and browsing to the Desktop and what sort of icon does nautilus show for the ods (when its shown as a text icon on the root screen) and what does right click->properties list then ?
(In reply to Caolan McNamara from comment #2)
> I assume the ods is not corrupted, i.e. that it opens fine if manually
> opened from within libreoffice, i.e. the (gnome-shell?) file detection
> misdetected the ods
The ods file itself is not corrupted. It can be opened manually within LibreOffice Calc, changed, saved and closed. Detection works correctly after that.
Created attachment 1312049 [details]
properties of ods file
When Desktop folder opened via Nautilus, ods file detection and its properties are correct. Properties of misdetected file are wrong, they even show that file has 0 bytes.
I think the desktop dingus is "nautilus-desktop"