[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: mime type confusion
From:       Stephan Kulow <coolo () kde ! org>
Date:       2003-05-27 11:20:00
[Download RAW message or body]

On Tuesday 27 May 2003 12:25, Daniel Naber wrote:
> On Tuesday 27 May 2003 11:45, Stephan Kulow wrote:
> 
> > > postscript.desktop has a X-KDE-NativeExtension with "Value=.ps", but
> > > it has no "Patterns". Because of this postscript files have a
> > > text/plain mime type on my system. Can I just add Patterns=*.ps or
> > > isn't that the right fix?
> >
> > What does file(1) say about your files?
> 
> I've tested 4 unpacked postscript files and file always returns:
> "PostScript document text conforming at level 2.0"
> 
> KDE says "text/plain", I added Patterns=*.ps and then it worked 
> ("application/postscript").
Can I see one? KIO's magic already says it's application/postscript when 
the first two bytes are %! and that's exactly what you need to have to
get file to output the above.

coolo@E36#tests>.//kmimemagictest $KEDIR/share/apps/kdeprint/testprint.ps
Found application/postscript, accuracy 100

Adding the Pattern is the wrong fix as there are pdf files out there named *.ps

Greetings, Stephan
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic