generic mimetypes on windows

Andreas Pakulat apaku at gmx.de
Thu Apr 19 23:48:05 BST 2007


On 19.04.07 23:02:38, Andreas Pakulat wrote:
> On 19.04.07 21:24:19, Christian Ehrlicher wrote:
> > Anyone knows how we can create the 'default' mimetypes like text/plain on 
> > windows? kde.xml only creates the kde specific ones and I can't find a 
> > generic.xml somewhere...
> 
> Uhm, the shared-mime-info sources contain a freedesktop.org.xml file
> which contains various mimetypes. I guess we need to have that in the
> update-mime-xx package and set KDEDIRS to include the win32libs/ dir so
> kbuildsycoca4 finds it.
> 
> Apart from that, I think KMimeType chokes on drive letters. When opening
> a file dialog from KDevelop the first call to KMimeType::findByUrl() is
> with "file://A:/" as URL and that is not a directory (S_DIR fails) and
> neither is it found in sycoca's cache.

I guess the reason is that KDE_stat expects a file, but if no diskette
is in that drive it won't get anything. Thus the mode isn't set to
anything and finding a mimetype for that url of course fails.

Andreas

-- 
A day for firm decisions!!!!!  Or is it?




More information about the kde-core-devel mailing list