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

List:       kde-devel
Subject:    Mimetypes from kioslave ignored?!
From:       Fritz Elfert <felfert () to ! com>
Date:       2001-03-24 18:57:19
[Download RAW message or body]


Hi,

I've written a kioslave for accessing files on a Psion PDA using KDE 2.1.
In my listDir() method, i return UDS-entries containing mimetypes for the
proprietary file-formats on the psion. Of course, i also provide
the corresponding entries in <mimedir>/application/<myMimeType> and
the icons referenced there. I tried UDS_MIME_TYPE and UDS_GUESSED_MIME_TYPE,
but konqueror does NOT show my mime-types and icons. As far as i can
remember, with the old kde 2.0 libs this worked correctly. When i look
into the various parts involved (kfileitem, kmime...) i noticed, that most
of the mime-related stuff is disabled when dealing with non-local
protocols. (Which is wrong at least in my case since the Psion provides
file type info in it's directory entries.) Also, lot of mime-type
related stuff is bound to the file-mode (e.g. checks for S_ISDIR or instead
of mimetype "inode/directory" which is also wrong in my case)

Is there any way to tweak that behavior without changing kdelibs and/or
konqueror? Or: what i am doing wrong?

Another minor problem:
In order to get a modified file-properties-dialog, i wrote a
KPropsDlgPlugin which handles all Psion-specific stuff. I added a
desktop file for that in <servicesdir>. Since the decicion of when to
call the factory is done mime-type based, i had to enter it for all
mimetypes:

ServiceTypes=KPropsDlg/Plugin,all/all

and thus delay the final decision to the supports() method of my
dialog. It would be really helpful, if that could be enabled also
using paths e.g. when the URL begins with some specified substring
e.g. "psion:/"


Ciao
 -Fritz
-- 
Fritz Elfert <felfert AT to.com>            Thinking Objects Software GmbH
--------------------------------------------------------------------------

 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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