I read http://dilfridge.blogspot.com/2010/11/pluggin-cool-plug-in-for-firefox.html and decided to try it out. I didn't have okular installed, and I started with installing kpartsplugin. Then I launched Firefox and couldn't find "pdf" string on about:plugins, and realized I need okular for that. So I closed Firefox, emerged Okular, but still pdf was not there. It appeared only after re-emerging kpartsplugin, which suggests there is some automagic behind the scenes. I think it'd be much better to handle this via USE flags explicitly, i.e. with USE=pdf depend on Okular or use || ( ... ) dependency.
(In reply to comment #0) > So I closed Firefox, emerged Okular, but still pdf was not there. It > appeared only after re-emerging kpartsplugin, which suggests there is some > automagic behind the scenes. Not really. I dont think the re-emerging itself made the change, more likely something like re-building the mime database... Logging out and back in should also do the trick, or running kbuildsyscoca4 ... > I think it'd be much better to handle this via USE flags explicitly, i.e. > with USE=pdf depend on Okular or use || ( ... ) dependency. Better not... quite some kde programs use other kpart libraries, we'd end up in use flag and dependency hell.
(In reply to comment #1) > Not really. I dont think the re-emerging itself made the change, more likely > something like re-building the mime database... Logging out and back in > should also do the trick, or running kbuildsyscoca4 ... You're right, I think I wasn't careful enough when checking this, or maybe it's the new KDE. Closing.