The Thunar file manager wasn't displaying previews for svg icons. It turns out that graphics/librsvg2 has to be installed as a runtime dependency. I had the same exact problem on my port, devel/gps. This is what I am doing to fix it: RUN_DEPENDS= rsvg-convert:${PORTSDIR}/graphics/librsvg2 In reality, what is needed I think is "lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders/libpixbufloader-svg.so" but this makes the RUN_DEPENDS tricky so I just picked an easy file to pull in the package as a run depends. When this librsvg2 library is installed, thunar displays svg icons fine.
(In reply to John Marino from comment #0) By default Thunar does not display any preview, it's deskutils/xfce4-tumbler. It already load gdkpixbuf2, librsvg2 is probably missing. Feel free to add librsvg2 into deskutils/xfce4-tumbler port. It's not necessary to use: RUN_DEPENDS= rsvg-convert:${PORTSDIR}/graphics/librsvg2 Mk/bsd.gnome.mk provides librsvg2 detection, simply adjust USE_GNOME macro.
okay, well, I'm only reporting a problem and suggested a fix. I trust your fix is better, and I'd prefer not to touch your ports right now. I've got some issues with a specific portmgr that I need to iron out first.
P.S. I just looked at bsd.gnome.mk, it sets LIB_DEPENDS. At least for GPS, I need RUN_DEPENDS. It's not a build dependency.
(In reply to John Marino from comment #2) I looked at source code, tumbler uses mainly gdkpixbuf functions, I prefer to use librsvg2 into USE_GNOME.
A commit references this bug: Author: olivierd Date: Mon Mar 30 18:41:11 UTC 2015 New revision: 382706 URL: https://svnweb.freebsd.org/changeset/ports/382706 Log: Allow Thunar (through tumbler daemon) to display previews for SVG icons. PR: 199009 Submitted by: marino@ Changes: head/deskutils/xfce4-tumbler/Makefile
Committed, thanks!