khtml: Why strip -plugin suffix?
Matt Rogers
matt at matt.rogers.name
Wed Apr 28 19:16:31 BST 2004
The following was received on kde-devel and i'm forwarding it here for you
cool people to take a look at.
---------- Forwarded Message ----------
Subject: khtml: Why strip -plugin suffix?
Date: Wednesday 28 April 2004 01:04 pm
From: Ryan Gammon <rgammon at real.com>
To: kde-devel at kde.org
Hi folks,
I'm trying to get konqueror working with the helixcommunity.org helix
player mozilla/netscape/(konq?) plugin (https://player.helixcommunity.org).
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.c
pp.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;
}
--
Ryan Gammon
rgammon at real.com
Developer for Helix Player
https://player.helixcommunity.org
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
>> <<
-------------------------------------------------------
More information about the kfm-devel
mailing list