After googling and searching I found out that for a particular file /home/user/example file.doc the corresponding thumbnail is in $XDG_CACHE_HOME/thumbnails/normal/hash.png, where hash=md5("file:///home/user/example%20file.doc")

(I found that in a relevant question and the Thumbnail Managing Standard)

But when the thumbnail is not generated yet, how do I trigger the generation?

I've tried exploring d-bus with d-feet, but didn't spot a relevant call.

share|improve this question
    
That would depend on what desktop environment and/or file indexer you are using: some might have "triggers" for it, others might have library functions, and sometimes you might want to create them yourself based on the standard you mention (e.g. when it's not a common file format) – JanC Jun 3 '17 at 12:54

I started to dig into source code and found that Tumbler does this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.