On 7/26/05, Luis Villa <[EMAIL PROTECTED]> wrote:
> On 7/25/05, Christopher James Lahey <[EMAIL PROTECTED]> wrote:
> > Does anyone have any suggestions for how to proceed here?  I want to
> > make the mime system detect docbook, since there is a mime type for it.
> 
> Ping? I'm running into the same problem here- I'd like to set a
> specific app to handle docbook, but AFAICT my options are either 'make
> that app the handler for all XML', or not have it handle it at all.
> Any ideas?

OK, so, nevermind, I suck. ;) I whipped up this docbook.xml for
/usr/share/mime/packages/, which when placed in /usr/share/mime/,
seems to do the right thing. I'm sending it to the list not so much in
hopes it'll get committed (it is probably hacky in some way shape or
form) but so that at least someone can find it in the archives later
when they have a problem.

Luis
<?xml version="1.0" encoding="UTF-8"?>

<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
 <mime-type type="application/docbook+xml">
  <sub-class-of type="text/xml"/>
  <comment xml:lang="en">Docbook XML Document</comment>
  <magic priority="60">
   <match type="string" value='docbookx.dtd' offset="0:200"/>
  </magic>
  <glob pattern="*.xml"/>
 </mime-type>
</mime-info>
_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to