[Xfce-bugs] [Bug 14576] Add support for folder.jpg
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Tue Aug 21 18:29:33 CEST 2018
https://bugzilla.xfce.org/show_bug.cgi?id=14576
--- Comment #56 from HYPERION <h1p8r10n at yandex.com> ---
Hi All,
Tumbler has the capability of loading "xxxx.thumbnailer" files placed in the
/usr/share/thumbnailers folder (aka Desktop Thumbnailer Plugin, see : plugin
https://docs.xfce.org/xfce/thunar/tumbler ).
This way I managed to make Thunar show folder icons, with a
"/usr/share/thumbnailers/folder.thumbnailer" as follow :
[Thumbnailer Entry]
Version=1.0
Encoding=UTF-8
Type=X-Thumbnailer
Name=Folder Thumbnailer
MimeType=inode/directory;
Exec=/usr/bin/convert -thumbnail %s %i/folder.jpg %o
AND Small mod in thunar-thumbnailer.c (line 331) :
- /* the icon factory only loads icons for regular files */
- if (!thunar_file_is_regular (lp->data))
+ /* the icon factory only loads icons for regular files & folders */
+ if (!thunar_file_is_regular (lp->data) && !thunar_file_is_directory
(lp->data))
{
thunar_file_set_thumb_state (lp->data, THUNAR_FILE_THUMB_STATE_NONE);
continue;
}
AND Small mod in thunar-icon-factory.c (line 850) :
- if (thunar_icon_factory_get_show_thumbnail (factory, file)
- && thunar_file_is_regular (file))
- {
+ if (thunar_icon_factory_get_show_thumbnail (factory, file))
+ {
+ if (thunar_file_is_regular (file) || thunar_file_is_directory (file))
Then it behaves like tumbler usually do for videos or images : slow at first
run, and no lag at all once the thumbnailer cache is populated.
JP
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list