svgz-Vorschaubilder in Nautilus

 5. Juni 2010 •  Ekkart •  Computer •  ToDo

Nautilus kann per default keine svgz-Vorschaubilder anzeigen. Kein Problem. Folgende Schritte helfen:

  1. rsvg-convert für die Generierung der Bilder installieren (Paket librsvg2-bin)
  2. Nautilus-Schema installieren, das die Generierung für Nautilus aktiviert und rsvg-convert als Generierungsprogramm festlegt
  3. Ordner fehlgeschlagener Vorschaubilder löschen
  4. alle laufenden Nautilus-Instanzen beenden und Nautilus neu starten

Das erwähnte Schema ist eine XML-Beschreibung, die in der Datei svgz-thumbnailer.schemas gespeichert wird:

<gconfschemafile>
   <schemalist>
       <schema>
           <key>/schemas/desktop/gnome/thumbnailers/image@svg@xml-compressed/enable</key>
           <applyto>/desktop/gnome/thumbnailers/image@svg@xml-compressed/enable</applyto>
           <owner>thumbnailer</owner>
           <type>bool</type>
           <default>true</default>
           <locale name="C">
               <short>Enable thumbnailing of image/svg+xml-compressed files</short>
               <long>Enable thumbnailing of image/svg+xml-compressed files</long>
           </locale>
       </schema>
       <schema>
           <key>/schemas/desktop/gnome/thumbnailers/image@svg@xml-compressed/command</key>
           <applyto>/desktop/gnome/thumbnailers/image@svg@xml-compressed/command</applyto>
           <owner>thumbnailer</owner>
           <type>string</type>
           <default>/usr/bin/rsvg-convert -w %s -h %s -o %o -a %i</default>
           <locale name="C">
                   <short>Command that creates a thumbnail</short>
                   <long>Command that creates a thumbnail (%o) for a filename (%i)</long>
           </locale>
       </schema>
   </schemalist>
</gconfschemafile>

Kommandozeile:

$ sudo apt-get install librsvg2-bin
$ gconftool --install-schema-file=svgz-thumbnailer.schemas
$ rm -r ~/.thumbnails/fail/gnome-thumbnail-factory/*
$ pkill nautilus

(Quellen: yeKblog, bugs.debian.org) Die Anleitung ist permanent abgelegt bei: ekkart.de