Hi everyone; Peter thanks so much for posting.

1. I followed "the GUI way" and that fixed konqueror.
Easy and fast; good tip.
However, okular still could only open 3 file types
(eps, tiff, and pdf not offered as supported file types)

2. I followed a variant of your "the harder way":

% ls -l /sw/opt/kde4/x11/share/mime/text/                                       
total 40                                                                        
-rw-r--r--  1 root  admin  213 Mar 15 23:24 plain.xml                           
-rw-r--r--  1 root  admin  298 Mar 15 23:24 vnd.abc.xml                         
-rw-r--r--  1 root  admin  302 Mar 15 23:24 x-hex.xml                           
-rw-r--r--  1 root  admin  313 Mar 15 23:24 x-katefilelist.xml                  
-rw-r--r--  1 root  admin  294 Mar 15 23:24 x-objchdr.xml                       
%                                                                               
(can see that lots of types are missing)                                        
(this is the tiny list that okular seemed to know about)                     
                                                                                
% sudo mv /sw/opt/kde4/x11/share/mime                                           
+/sw/opt/kde4/x11/share/orig_mimedir_not_complete                               
                                                                                
% sudo mkdir /sw/opt/kde4/x11/share/mime                                        
                                                                                
% sudo rsync -avxz /sw/share/mime /sw/opt/kde4/x11/share/mime                   
                                                                                
% ls -l /sw/opt/kde4/x11/share/mime/text|wc -l                                  
      92                                                                        
                                                                                
3. After this copying of mime XML files, 
okular can open .tiff files.
okular can also open .eps files (as fairly bitmappy graphics;
I assume the resolution can be tuned, but text should really be
rendered with fonts and not bitmappy; gv looks much better at the moment)

okular still cannot open .pdf files.

4. I suspect that my okular's support for .tiff and .eps but NOT .pdf
relates to

% ls -l /sw/opt/kde4/x11/share/applications/kde4/okular*
-rw-r--r--  1 root  admin  3644 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okular.desktop
-rw-r--r--  1 root  admin  3626 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_chm.desktop
-rw-r--r--  1 root  admin  3661 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_comicbook.desktop
-rw-r--r--  1 root  admin  3624 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_djvu.desktop
-rw-r--r--  1 root  admin  3666 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_dvi.desktop
-rw-r--r--  1 root  admin  3638 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_epub.desktop
-rw-r--r--  1 root  admin  3614 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_fax.desktop
-rw-r--r--  1 root  admin  3655 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_fb.desktop
-rw-r--r--  1 root  admin  3916 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_kimgio.desktop
-rw-r--r--  1 root  admin  3646 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_mobi.desktop
-rw-r--r--  1 root  admin  3629 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_ooo.desktop
-rw-r--r--  1 root  admin  3636 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_plucker.desktop
-rw-r--r--  1 root  admin  3600 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_tiff.desktop
-rw-r--r--  1 root  admin  3639 Jan 19 18:21 
/sw/opt/kde4/x11/share/applications/kde4/okularApplication_xps.desktop

(NO file named okularApplication_pdf.desktop found).

Any thoughts for how to get my okular to view PDFs?
Thanks for the help with konqueror!

Andrew

--- On Mon, 4/12/10, Peter Wong <[email protected]> wrote:

> From: Peter Wong <[email protected]>
> Subject: Re: Fink-beginners Digest, Vol 48, Issue 4
> To: [email protected]
> Cc: "andrew rappe" <[email protected]>
> Date: Monday, April 12, 2010, 5:32 PM
> 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