Re: Porting Softimage PIC loader to KDE4 / gwenview
Aurélien Gâteau <[email protected]> Mon, 20 Jul 2009 23:33:55 +0200
| Newsgroups | gmane.comp.kde.gwenview |
|---|---|
| Message-ID | <[email protected]> |
Ruben Lopez wrote: > Aurélien Gâteau escribió: >> Ruben Lopez wrote: >> >>> I only see problems with "nepomuk", but the same errors are shown when I >>> go to a folder with png files, and they work just nice in all the >>> views :( >>> >>> >> >> The Nepomuk errors can be ignored (I need to find a way to avoid those). >> What's interesting is this part: >> >> gwenview(5570) Gwenview::LoadingDocumentImplPrivate::startLoading: >> mimeType: "image/x-hdr" >> gwenview(5570) Gwenview::LoadingDocumentImplPrivate::startLoading: >> kind: 4 >> >> 4 means that the MimeTypeUtils::mimeTypeKind() method recognized the >> image as an archive... This happens when the .desktop file describing >> the mimetype contains some special entries. Can you send this .destop >> file? >> > It seems that gwenview or KDE is using the wrong desktop file. The > x-hdr.desktop file matches both .hdr and .pic extensions. I have > installed an x-pic.desktop (attached) that matches *.pic, but the other > one is being used instead. Can I write something in the .desktop file to > help gwenview differentiate between HDR pic and Softimage pic? One thing you can try is to open lib/mimetypeutils.cpp, go to the mimeTypeKind() function, and move the if which returns KIND_DIR and KIND_ARCHIVE to the end of the function. But I do not understand why Gwenview would consider image/x-hdr to be an archive. Even if it's the wrong mimetype, it's an image mimetype, so it should return KIND_RASTER_IMAGE. > At this moment I can't remove the *.pic pattern from the x-hdr desktop > file, but I will be able in a couple of days, when the systems > administrator is back. This may be enough for us. In case you are still stuck with that problem, you can try to copy the x-hdr desktop file to the appropriate subdir of your .kde folder and remove the "*.pic" from it. This should overload the system one. Aurélien ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge