[Fwd: khtml: Why strip -plugin suffix?]
Koos Vriezen
koos.vriezen at xs4all.nl
Wed Apr 28 22:03:08 BST 2004
On Wed, Apr 28, 2004 at 11:55:31AM -0700, Ryan Gammon wrote:
> I'm having problems with khtml. It seems to be looking for a service by
> the name of "audio/x-pn-realaudio", whereas the generated
> nsplugin.desktop file contains audio/x-pn-realaudio-plugin (ie - has a
> -plugin suffix).
>
> Is anyone familar with the story behind this fix?
>
> http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdelibs/khtml/html/html_objectimpl.cpp.diff?r1=1.108&r2=1.109
>
> --- kdelibs/khtml/html/html_objectimpl.cpp 2003/04/30 10:51:19 1.108
> +++ kdelibs/khtml/html/html_objectimpl.cpp 2003/05/22 15:01:57 1.109
> @@ -57,6 +57,9 @@ void HTMLObjectBaseElementImpl::setServi
> int pos = serviceType.find( ";" );
> if ( pos!=-1 )
> serviceType = serviceType.left( pos );
> + pos = serviceType.find( "-plugin" );
> + if ( pos!=-1 )
> + serviceType = serviceType.left( pos );
> needWidgetUpdate = true;
> }
AFAIK, the mime is audio/x-pn-realaudio and not audio/x-pn-realaudio-plugin. For that
reason -plugin is stripped (I recall the problem with application/x-java-applet-plugin).
If this is a problem for realplay, we could first try w/o stripping it or let
nspluginscanner strip the -plugin extension. I vote for the last option, George?
Koos
More information about the kfm-devel
mailing list