Thunar Not Showing Thumbnails

📅 January 4, 2018
“Thunar is not showing any thumbnails despite thumbnail generation enabled. Why?”

I ran into this issue in Linux Mint 18.3 Cinnamon when using the Thunar file manager. Traversing directories functioned fine, but no thumbnails were generated for media files, such a images, videos, and music containing album art.

Here is one technique I tried to make the thumbnails appear.

Before. Thunar displaying the contents of a directory containing GIF images. No thumbnail previews were shown even though Thunar is set to allow thumbnails.

After. Thunar now automatically generates and displays thumbnails as soon as the directory is opened.

In Linux Mint 18.3 Cinnamon, Thunar is not installed by default. So, if you do not use Thunar, then this might not apply to you. However, if you do have Thunar installed and you use it, then this technique might help.

First, make sure you have Thunar installed and any plugins you might need. Check Synaptic Package Manager.

Thunar and associated plugins shown in Synaptic. Your needs might vary, so check what you need.

While we have Synaptic open, check to make sure ffmpegthumbnailer is installed. Nemo uses this to generate its thumbnails, and Thunar can use it too.

Install tumbler. Not absolutely certain if tumbler is still necessary for Thunar, but I noticed on my system that Thunar did not automatically generate thumbnails until it was installed.

Thunar usually needs tumbler in order to enable automatic thumbnail generation. tumbler is not installed by default in Linux Mint 18.3 Cinnamon.

In Thunar itself, open File Manger Preferences with Edit > Preferences > Display. Select Always for Show Thumbnails. This displays thumbnails for local and remote files.

Thunar preferences to enable thumbnail generation.

Restart Thunar by closing all instances and running thunar -q at a command prompt.

thunar -q

Strangely, this was not enough to automatically generate thumbnails on my system. At first, I was tricked into thinking that Thunar was generating thumbnails when it really was not because Thunar will display thumbnails already generated by Nemo.

If thumbnails already exist in ~/.thumbnails or ~/.cache/thumbnails, regardless of what program creates them, then Thunar will display them. I wanted automatic thumbnail generation upon opening a directory within Thunar. To do this, I also had to perform these steps:

  1. sudo apt install update-mime-database
  2. sudo update-mime-database /usr/share/mime
  3. thunar -q

To be certain that Thunar was generating thumbnails, I also cleared the thumbnail cache directories at ~/.cache/thumbnails and ~/.thumbnails.

After closing Thunar and reopening directories, thumbnails automatically generated using Thunar. I could see this by watching ~/.cache/thumbnails/normal populate as I traversed media directories using Thunar. New thumbnail files (.png) automatically appeared, and thumbnails were shown.

~/.cache/thumbnails/normal stores new thumbnails generated by Thunar. The thumbnail files themselves are not thumbnailed (what would be the point?), which is why thumbnails do not exist for them in this directory. This directory will fill with files as media thumbnails are generated. Thunar file manager shown.

Thunar generated thumbnails for almost all media files. Images (png, jpg, gif) and videos (mkv, mp4) displayed fine, but embedded album art contained within music files, such as mp3 and flac, did not have thumbnails generated for them like Nemo would do. This seems to be a design issue regarding Thunar, so there is not a native way to resolve it. However, if another file manager, such as Nemo, pre-generates thumbnails for the music files, then Thunar will display the thumbnails for those music files.

“Why do this at all?”

To have a secondary file manager available in case the primary file manager (Nemo, in this case) falters. I have encountered a few situations where Nemo would unexpectedly crash — closing all open Nemo windows and, thus, losing my progress. Quite annoying. With another file manager ready, this situation is lessened by dividing the workload between two different file managers.

Have fun!

 

,

  1. Leave a comment

Leave a comment