Skip to content
Commit d682a669 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Supply canonicalPath to thumbForDirectory instead of fake QUrl

`url` is either a `thumbnail:` URL or a local URL (when called from
the m_propagationDirectories recursion), in both cases only the local
path is relevant.

Always supply a local path to the thumbForDirectory method, this also
avoids creation of a temporary QUrl.

Make the path canonical, as the path will be used will be used for
determining the thumbname hash and the Thumb::URI metadata field.
Otherwise, the directory thumbnailer will create duplicate thumbnails
for e.g. symlinked directories:

https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html#THUMBSAVE
> You need the absolute canonical URI for the original file,
> as stated in URI RFC 2396.
parent 15030360
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment