i had the same problem every time i installed kde through fink. for some reason 
that's beyond me, the mime database wasn't being built properly through the 
ksyscoca utility. how i solved it is this:

the GUI way (if you can get to it):
launch /sw/opt/kde4/x11/bin/systemsettings, and go to the 'advanced' tab, and 
click on 'file associations'. then at the bottom click 'add...' and add every 
one of the things it keeps asking for. then click 'apply'. after that, things 
don't complain anymore.

the harder way (if the GUI won't launch or you can't see anything in it):
go to either one or both of the following directories (i think /sw/share/mime 
is more important...):
        /sw/share/mime
        /sw/opt/kde4/x11/share/mime/
and copy files in the appropriate directories (application, text, inode) that 
might resemble what's missing, renaming them to the missing mimetypes. i had to 
do it this way once and i remember using the most minimal number of tags in the 
copied files.

i hope that helps, though it might not be the most elegant solution.

-peterwong
.


On M10.04.12 , at 10.04a, [email protected] wrote:
> ------------------------------
> 
> Message: 7
> Date: Mon, 12 Apr 2010 10:04:30 -0700 (PDT)
> From: andrew rappe <[email protected]>
> Subject: [Fink-beginners] defining MIME types for okular and konqueror
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
> 
> I just compiled KDE4 on a G4 mac running OSX 10.5.8 and xcode 3.2.1.
> I cannot seem to get the MIME types database set up, so applications
> that depend on it (e. g. konqueror and okular) cannot open any files.
> 
> I'm using this version:
> ii  okular4-x11    4.4.1-1        KDE4 - document viewer
> 
> when I run okular, I get the initial page.
> Clicking File -> Open gives "Could not find mime type 
> "application/octet-stream"  saying OK to that gives an "Error-Okular" window 
> complaining
> "Could not find mime types"
> inode/directory
> inode/blockdevice
> inode/chardevice
> etc etc etc
> 
> When I run konqueror it also says "Could not find mime type 
> "application/octet-stream" and when I visit http://www.google.com,
> konqueror asks "Open 'http://w...google.com/'? Type text/html,
> meaning I should specify how it should interpret text/html.
> So this is a similar MIME type problem.
> 
> I followed the advice of Benjamin found at:
> http://archive.netbsd.se/?ml=fink-beginners&a=2009-08&t=11257217
> 
> namely to run
> 
> sudo /sw/opt/kde4/{type}/bin/kde4-postinst.sh
>  /sw/opt/kde4/{type}/bin/kbuildsycoca4 --noincremental
> 
> 
> % sudo /sw/opt/kde4/x11/bin/kde4-postinst.sh
> ...seems to run fine, tells me
> == KDE4 Applications Have Been Updated ==
> You should start a new shell, or run 
> /sw/opt/kde4/x11/bin/kde4-check-sycoca.sh to update the KDE4 application 
> database.
> 
> % /sw/opt/kde4/x11/bin/kde4-check-sycoca.sh
> * you've installed KDE4 (x11) applications since last time you ran init -- 
> updating desktop cache
> 
> 
> % /sw/opt/kde4/x11/bin/kbuildsycoca4 --noincremental
> give 600 lines of output.
> 93 lines matching the phrase "not found", such as
> 
>    501:kbuildsycoca4(46500) KBuildServiceFactory::collectInheritedServices: 
> parent mimetype not found: "application/octet-stream"
>    502:kbuildsycoca4(46500) KBuildServiceFactory::collectInheritedServices: 
> parent mimetype not found: "application/zip"
>    503:kbuildsycoca4(46500) KBuildServiceFactory::collectInheritedServices: 
> parent mimetype not found: "inode/directory"
>    504:kbuildsycoca4(46500) KBuildServiceFactory::collectInheritedServices: 
> parent mimetype not found: "application/octet-stream"
>    505:kbuildsycoca4(46500) KBuildServiceFactory::collectInheritedServices: 
> parent mimetype not found: "audio/x-mpegurl"
>    506:kbuildsycoca4(46500) KBuildServiceFactory::collectInheritedServices: 
> parent mimetype not found: "application/octet-stream"
>    507:kbuildsycoca4(46500) KBuildServiceFactory::collectInheritedServices: 
> parent mimetype not found: "audio/ogg"
>    508:kbuildsycoca4(46500) KBuildServiceFactory::collectInheritedServices: 
> parent mimetype not found: "text/calendar"
> 
> For okular this one seems crucial:
> 
> kbuildsycoca4(46500) KBuildServiceFactory::populateServiceTypes: 
> "gsthumbnail.desktop" specifies undefined mimetype/servicetype 
> "application/pdf"
> 
> (that's the only mention of "pdf" in the output from kbuildsycoca4 
> --noincremental)
> 
> And running these commands provides no improvement for okular or konqueror.
> 
> I bet this is an easy fix; sorry I could not find the answer through 
> searching.  Can anyone help me?
> 
> (Same problem on 3 macs with independent fink builds from source)
> 
> Thanks,
> Andrew

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to