[Xfce-bugs] [Bug 14576] Add support for folder.jpg
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Sat Aug 25 10:37:42 CEST 2018
https://bugzilla.xfce.org/show_bug.cgi?id=14576
--- Comment #76 from HYPERION <h1p8r10n at yandex.com> ---
Something needs to be improved to handle folder names containing spaces :
________________________________________________________________
#!/bin/bash
convert -thumbnail "$1" "$2/folder.jpg" "$3" ||\
convert -thumbnail "$1" "$2/.folder.jpg" "$3" ||\
convert -thumbnail "$1" "$2/folder.png" "$3" ||\
convert -thumbnail "$1" "$2/cover.jpg" "$3" ||\
rm -f "$HOME/.cache/thumbnails/normal/$(echo -n "$4" | md5sum | cut -d " "
-f1).png" ||\
rm -f "$HOME/.thumbnails/normal/$(echo -n "$4" | md5sum | cut -d " " -f1).png"
||\
rm -f "$HOME/.cache/thumbnails/large/$(echo -n "$4" | md5sum | cut -d " "
-f1).png" ||\
rm -f "$HOME/.thumbnails/large/$(echo -n "$4" | md5sum | cut -d " " -f1).png"
||\
exit 1
________________________________________________________________
[Thumbnailer Entry]
Version=1.0
Encoding=UTF-8
Type=X-Thumbnailer
Name=Folder Thumbnailer
MimeType=inode/directory;
Exec=/usr/bin/folder-thumbnailer %s %i %o %u
________________________________________________________________
How could I get authoring access to the xfce wiki ?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list