Skip to content

file: Fallback to fast-content-type if content-type is not set

Ondrej Holy requested to merge wip/oholy/fast-content-type into master

The G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE attribute doesn't have to be always set. See gvfs!68 (merged) for more details. In that case, Nautilus fallbacks to the "application/octet-stream" type, which causes issues when opening the files. Let's fallback to the "standard::fast-content-type" attribute instead to fix issues when opening such files.

Fixes: #1425 (closed)

Merge request reports