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

Daniel Leidert daniel.leidert at wgdd.de
Wed May 23 18:42:16 UTC 2007


Am Dienstag, den 01.05.2007, 23:49 +0200 schrieb Preben Randhol:
> 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

Unfortunately, that's AFAIK the case. You should file an enhancement
request for ROX(-filer). That's not a shared-mime-info issue. Seems ROX
does not follow the freedesktop.org specification. See
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#id2447161.

Regards, Daniel






More information about the pkg-gnome-maintainers mailing list