Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
xfce:tumbler:available_plugins [2022/12/05 15:26] – [Configuration] gaelxfce:tumbler:available_plugins [2023/07/04 15:45] (current) – Fix quoting in Exec commands gael
Line 103: Line 103:
 ===== Customized Thumbnailers ===== ===== Customized Thumbnailers =====
 As of version 0.2.0, the desktop thumbnailer functionality has been added back into tumbler. This functionality supports custom ''.thumbnailer'' files placed in the ''XDG_DATA_DIRS/thumbnailers'' directories and the ''XDG_DATA_HOME/thumbnailers'' directory (which defaults to ''~/.local/share/thumbnailers''). The former is the place for system wide thumbnailers (normally in ''/usr/share/thumbnailers''), while the latter is the preferred place for the user's customized thumbnailers (see below). As of version 0.2.0, the desktop thumbnailer functionality has been added back into tumbler. This functionality supports custom ''.thumbnailer'' files placed in the ''XDG_DATA_DIRS/thumbnailers'' directories and the ''XDG_DATA_HOME/thumbnailers'' directory (which defaults to ''~/.local/share/thumbnailers''). The former is the place for system wide thumbnailers (normally in ''/usr/share/thumbnailers''), while the latter is the preferred place for the user's customized thumbnailers (see below).
 +
 +Since 4.17.0 (first stable release 4.18.0), in case of several ''.thumbnailer'' files with the same name in the thumbnailer directories, the one placed in the highest priority directory override all the others.
 +
  
 ==== Customized Thumbnailer for .dds files ==== ==== Customized Thumbnailer for .dds files ====
Line 137: Line 140:
 Name=Folder Thumbnailer Name=Folder Thumbnailer
 MimeType=inode/directory; MimeType=inode/directory;
-Exec=sh -c '~/bin/folder-thumbnailer %s %i %o %u'+Exec=sh -c '~/bin/folder-thumbnailer "$@"'%s %i %o %u
 </file> </file>
  
Line 161: Line 164:
 Don't forget to give execution permission to the file: Don't forget to give execution permission to the file:
  
-  chmod u+x /usr/bin/folder-thumbnailer+  chmod u+x ~/bin/folder-thumbnailer
      
 and to restart Thunar and Tumbler so that the new folder mime type is taken into account. and to restart Thunar and Tumbler so that the new folder mime type is taken into account.
Line 177: Line 180:
 Name=Text Thumbnailer Name=Text Thumbnailer
 MimeType=text/plain;text/html;text/css; MimeType=text/plain;text/html;text/css;
-Exec=sh -c '~/bin/textthumb %s %i %o'+Exec=sh -c '~/bin/textthumb "$@"'%s %i %o
 </file> </file>
  
Line 214: Line 217:
 Name=webp Thumbnailer Name=webp Thumbnailer
 MimeType=image/webp; MimeType=image/webp;
-Exec=sh -c '~/bin/webpthumbs %s %i %o'+Exec=sh -c '~/bin/webpthumbs "$@"'%s %i %o
 </file> </file>
  
Line 239: Line 242:
 Name=STL Thumbnailer Name=STL Thumbnailer
 MimeType=model/stl; MimeType=model/stl;
-Exec=sh -c '~/bin/stl-thumbnailer %i %o %s'+Exec=sh -c '~/bin/stl-thumbnailer "$@"'%i %o %s
 </file> </file>