Bug#408180: shared-mime-info: Doesn't seem like magic actually matches correctly

Preben Randhol randhol+bugs at pvv.org
Tue May 1 21:49:22 UTC 2007


On Tue, 01 May 2007 15:50:42 +0200
Daniel Leidert <daniel.leidert at wgdd.de> wrote:

> Am Donnerstag, den 26.04.2007, 22:22 +0200 schrieb Sven Arvidsson:
> > > I tried to set up a rule to recognise Vim sessions:
> > > 
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <mime-info
> > > xmlns="http://www.freedesktop.org/standards/shared-mime-info">
> > > <mime-type type="text/x-vim-session"> <comment>Vim
> > > session</comment> <comment xml:lang="nb">Vim sesjon</comment>
> > >      <magic priority="100">
> > >          <match value="SessionLoad" type="string" offset="5:15"/>
> > >      </magic>
> > >      <glob pattern="*.vim"/>
> > >    </mime-type>
> > > </mime-info>
> > > 
> > > Problem is that it doesn't seem like it matters at all what I put
> > > in the match unless I remove the glob pattern. Is this a bug or
> > > feature?
> > 
> > Hi,
> > 
> > This looks more like a configuration issue than a bug, maybe you
> > can ask for some pointers on the xdg list?
> 
> text/x-vim-session sounds like this is a sub-class of text/plain. This
> MUST be mentioned:
> 
> <sub-class-of type="text/plain"/>
> 
> See e.g.
> http://mail.gnome.org/archives/gnome-vfs-list/2006-January/msg00007.html
> for an explanation.

Yes I tried that too, but it doesn't help. Probably a rox problem





More information about the pkg-gnome-maintainers mailing list