Adding Mime Types
Kevin Krammer
kevin.krammer at gmx.at
Sun Mar 14 18:38:28 GMT 2004
On Sunday 14 March 2004 15:00, Clemens Wacha wrote:
> Am Son, den 14.03.2004 schrieb Kilian Kluge um 14:40:
> > > I want to add a new mimetype for my own special text files. But
> > > the problem is that kde always recognizes them as text files. how
> > > can I override this?
> >
> > At the Control Center ([Alt]+[F2], then type 'kcontrol') you can add
> > own MIME-Types (the special function is found in the
> > KDE-Components-group there). There you can add your own ending of
> > the files, a special icon and the program to open these files!
>
> Strange.. now it works..
>
> Anyway, I want that this also works with folders.
>
> I have registered a new mime type application/folder-app with pattern
> *.App
>
> then i make touch test.App
> and mkdir tmp.App
>
> cwacha at lapis:~/Desktop$ kfile test.App/
> My Application.App/: Folder (inode/directory)
> cwacha at lapis:~/Desktop$ kfile tmp.App
> test.App: Application (application/folder-app)
>
> How does kde find out the mime type? There must be some rules somewhere.
I think the rules for local files are:
- decide by extension
- check magic code
I am pretty sure directories are sorted out first, not sure if there can be a
specialized directory mime type.
I'd says you wait a couple of days. Maybe Waldo Bastian reads your question.
If not, I suggest you ask on kfm-devel.
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
www.mrunix.de - Unix/Linux programming forum
www.qtforum.org - Qt programming forum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde/attachments/20040314/4bb66800/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list