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

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

> 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.

Try with the new geda.xml file. I've checked how other programs I have
installed define their mimetypes defined and made our mimetypes a
subclass of "text/plain". I think this should fix your problem.

> 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?

Icons are a bit tricky. I am not sure how an application can install an
icon for its mimetype in a way that works system-wide with both GNOME
and KDE.

On GNOME I have the Tango icon set
(http://art.gnome.org/themes/icon/1150) installed. I have just copied
the icons into ~/.icons/Tango and made symbolic links. Like this:

avian@orion:~/.icons/Tango/scalable/mimetypes$ ls -la *geda*
application-x-geda-schematic.svg
application-x-geda-symbol.svg
gnome-mime-application-x-geda-schematic.svg ->
application-x-geda-schematic.svg
gnome-mime-application-x-geda-symbol.svg -> application-x-geda-symbol.svg

(you can get scalable versions from here:
http://www.tablix.org/~avian/geda/icons)

Best regards
Tomaz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLIYysAlAlRhL9q8RAli9AKCGTPQS+Z/wHDykP6nLVKcpAfJ53gCeMKVy
jMxIBqIL6pXS9c7mNEaiiYE=
=+fF5
-----END PGP SIGNATURE-----
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
	<mime-type type="application/x-geda-schematic">
		<sub-class-of type="text/plain"/>
		<comment>gEDA circuit schematic</comment>
		<glob pattern="*.sch"/>
		<magic priority="90">
      			<match value="v 200" type="string" offset="0"/>
		</magic>
	</mime-type>
	<mime-type type="application/x-geda-symbol">
		<sub-class-of type="text/plain"/>
		<comment>gEDA schematic symbol</comment>
		<glob pattern="*.sym"/>
		<magic priority="80">
      			<match value="v 200" type="string" offset="0"/>
		</magic>
	</mime-type>
	<mime-type type="application/x-pcb">
		<sub-class-of type="text/plain"/>
		<comment>PCB layout</comment>
		<glob pattern="*.pcb"/>
		<magic priority="50">
      			<match value="# release: pcb " type="string" offset="0"/>
		</magic>
	</mime-type>
	<mime-type type="application/x-gerber">
		<sub-class-of type="text/plain"/>
		<comment>Gerber RS-274X file</comment>
		<glob pattern="*.gbr"/>
		<magic priority="50">
      			<match value="G04" type="string" offset="0"/>
		</magic>
	</mime-type>
</mime-info>


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