uncertain about mimetype desktop files
Jens Herden
jens at kdewebdev.org
Sat Dec 17 15:59:15 GMT 2005
Hi David,
thanks for your quick and competent reply, I appreciate this very much!
So I will do what you suggested: fix KDE for .pk and .gf and write a
bugreport.
Jens
On Saturday 17 December 2005 17:08, David Faure wrote:
> On Saturday 17 December 2005 10:50, Jens Herden wrote:
> > Hi,
> >
> > I discovered in x-tex-pk.desktop mimetype the entry:
> >
> > Patterns=*pk;*PK;
> >
> > The consequence is that every file with a name pk is a packed font :-(
> > I guess this should be *.pk and *.PK ?
>
> I guess so too, IMHO you can go ahead and make that change.
>
> > Maybe related to this in x-tex-gf.desktop the entry:
> >
> > Patterns=*.*gf;*.*GF;
> >
> > This is very unusual because of the * in the extention.
>
> This looks wrong too.
>
> http://www.math.utah.edu/~beebe/fonts/metafont.html says
> "Metafont font format
> The output of metafont is a bitmap font file in .gf (generic font) format.
> This is normally immediately converted to a more compact, but equivalent,
> packed .pk format with Tom Rokicki's gftopk utility; pktogf is available
> to go in the reverse direction."
>
> OK, this confirms both .gf and .pk.
>
> > I also found some files without any Pattern:
> > x-awk.desktop
> > x-mswrite.desktop
> > x-sharedlib.desktop
> > x-sqlite2.desktop
> > x-sqlite3.desktop
> >
> > What is the reason for this?
>
> We don't only use extensions to find out the mimetype of a file, we also
> use the contents, when the extension is unknown, with the so-called "Mime
> Magic" mechanism. So this is fine.
>
> > Does KDE get the mimetypes from somewhere else so that this should be
> > fixed somewhere upstream?
>
> Not at the moment. But you could check that the shared mimetype standard on
> freedesktop.org has the right stuff. Let's see...
> http://cvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml.in?vie
>w=markup
>
> Hmm, apparently it has the *pk bug and the *.*gf bug, obviously from the
> kde mimetypes. Can you report a bug on
> https://bugs.freedesktop.org/buglist.cgi?product=shared-mime-info&bug_statu
>s=NEW&bug_status=ASSIGNED&bug_status=REOPENED ?
> Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051217/c888cccc/attachment.sig>
More information about the kde-core-devel
mailing list