[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-dev: Icons and mime types for gEDA files



On Sun, 2007-04-22 at 23:28 +0200, Tomaz Solc wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> Some time ago I got bored of all my gEDA files being marked as "Text
> document" by GNOME. So I made a "package" XML file for the MIME database
> [1] (it should also work with KDE). It describes MIME types for GSchem
> schematic and symbol files, PCB layouts and gerber files.

Cool,

I installed the geda.xml in /usr/local/share/mime/packages

and ran update-mime-database /usr/local/share/mime.

GnomeVFS reports the mime type correctly:

nomevfs-info test.sch 
Name              : test.sch
Type              : Regular
MIME type         : application/x-geda-schematic
...

But in Nautilus, it can't decide between displaying

"gEDA circuit schematic" (in the MIME column of a file list)
or "plain text document" when you actually select the file, or view its
properties in Nautilus.

I installed the icons under /usr/local/share/icons:

/usr/local/share/icons/hicolor/48x48/application-x-geda-schematic-48.png
/usr/local/share/icons/hicolor/48x48/application-x-geda-symbol-48.png
/usr/local/share/icons/hicolor/22x22/application-x-geda-schematic-22.png
/usr/local/share/icons/hicolor/22x22/application-x-geda-symbol-22.png
/usr/local/share/icons/hicolor/16x16/application-x-geda-schematic-16.png
/usr/local/share/icons/hicolor/16x16/application-x-geda-symbol-16.png

And generated

/usr/local/share/icons/hicolor/icon-theme.cache

using gtk-update-icon-cahce --ignore-theme-index

It appears that the geda.xml doesn't refer to the icons directly, and
the icons aren't picked up in nautilus (or anywhere I can tell).
Presumably the mime-related naming is important.

What are the steps I'm missing to make this all work?

Regards

Peter C




_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev