mime type confusion

Stephan Kulow coolo at kde.org
Tue May 27 12:20:00 BST 2003


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




More information about the kde-core-devel mailing list