! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
SVG file in Templates folder slows down menu significantly
Status:
RESOLVED: WORKSFORME

Comments

Description Michael Perlov 2011-09-20 11:01:10 CEST
1. Thunar "Create document" menu takes a while to popup if there are .svg file in ~/Templates folder.

2. Additionally, Thunar won't display svg icons in menus, although it opens an icon file.

Cutted strace:

gettimeofday({1316509097, 297060}, NULL) = 0
lstat64("/usr/share/icons/Faenza/mimetypes/scalable/application-xml.svg", {st_mode=S_IFLNK|0777, st_size=14, ...}) = 0
stat64("/usr/share/icons/Faenza/mimetypes/scalable/application-xml.svg", {st_mode=S_IFREG|0644, st_size=410787, ...}) = 0
readlink("/usr/share/icons/Faenza/mimetypes/scalable/application-xml.svg", "./text-xml.svg", 256) = 14
gettimeofday({1316509097, 297262}, NULL) = 0
open("/usr/share/icons/Faenza/mimetypes/scalable/application-xml.svg", O_RDONLY|O_LARGEFILE) = 20
fstat64(20, {st_mode=S_IFREG|0644, st_size=410787, ...}) = 0
read(20, "<?xml version=\"1.0\" encoding=\"UT"..., 65536) = 65536
gettimeofday({1316509097, 297400}, NULL) = 0
Comment 1 Michael Perlov 2011-09-20 11:05:06 CEST
Desktop menu does not affected by this bug
Comment 2 David Schneider 2011-11-28 09:20:41 CET
Created attachment 3987 
ODF templates that make Thunar sad

I think I'm having the same issue, but with ODF file templates.
xfdesktop shows the templates properly (with generic MIME icons), but Thunar will churn for a bit and then display the templates without any icons at all (a single white pixel).

I'm using the Tango icon theme which has SVG scalable MIME icons (but also pre-scaled 16, 22, 24, and 32px PNG versions), so it may just be related to the selection and display of the SVG scalable MIME icons; but I'm attaching the templates anyway just in case.  If it IS trying to display the SVG icons, it should 1) probably be going for the pre-scaled icons instead, and/or 2) not fail at rendering them in the first place.
Comment 3 Harald Judt editbugs 2015-05-25 20:22:12 CEST
For the OpenOffice files, thunar generates thumbnails if there is a thumbnailer available. I suspect the same for the SVG. These are shown as icons in the templates menu. You can verify this by putting a jpeg file in the templates folder. Because the thumbnails generated for the Openoffice files are only white background, there is not much to see.

BTW: It may be enough to create such template files by simply creating empty files and renaming them so they have the appropriate extensions. This works fine on my system for LibreOffice files, and they are opened in the proper programs.

So far, this works as designed. Therefore I am closing this bug report. Reopen if necessary.

Bug #7989

Reported by:
Michael Perlov
Reported on: 2011-09-20
Last modified on: 2015-05-25

People

Assignee:
Jannis Pohlmann
CC List:
4 users

Version

Attachments

ODF templates that make Thunar sad (21.30 KB, application/x-bzip)
2011-11-28 09:20 CET , David Schneider
no flags

Additional information