New handling for URI scheme handlers

David Faure faure at kde.org
Mon Oct 11 14:59:14 PDT 2010


On Friday 08 October 2010, Bastien Nocera wrote:
> On Tue, 2010-10-05 at 16:32 +0100, Bastien Nocera wrote:
> > Heya,
> > 
> > This morning I implemented in GNOME use of the x-scheme-handler/*
> > mime-type for applications to register their interest in handling
> > particular URI schemes.
> > 
> > I posted about it in:
> > http://www.hadess.net/2010/10/new-control-center-and-you.html
> > And have a blocker bug for GNOME applications in:
> > https://bugzilla.gnome.org/show_bug.cgi?id=631433
> > 
> > The attached patch is changes to the shared-mime-info spec to mention
> > the use of x-scheme-handler/* mime-types.
> > 
> > Any comments?
> 
> I committed the changes to the spec to shared-mime-info, with the
> addition of a clarification paragraph to mention that the mime-type
> should not be used to advertise supported URI schemes.

I just committed support for x-scheme-handler/* to KDE, it will be in KDE SC 4.6.

=====================

Add support for defining "helper protocols" (e.g. "mailto URLs should launch the executable kmailservice")
using .desktop files (with a custom mimetype, x-scheme-handler/mailto, as added to shared-mime-info recently)
rather than using .protocol files (which are KDE-specific). Converted the two in KIO, but the code can still
handle old-style .protocol files. Unit-tested.

 M  +1 -0      kdecore/services/kmimetype.cpp  
 M  +1 -0      kdecore/services/kmimetypetrader.cpp  
 M  +17 -9     kdecore/sycoca/kprotocolinfo.cpp  
 M  +18 -0     kdecore/tests/kmimetypetest.cpp  
 M  +1 -0      kdecore/tests/kmimetypetest.h  
 M  +13 -10    kded/kbuildmimetypefactory.cpp  
 M  +2 -0      kded/kbuildmimetypefactory.h  
 M  +10 -3     kded/kbuildservicefactory.cpp  
 M  +3 -3      kio/misc/CMakeLists.txt  
 A             kio/misc/kmailservice.desktop   kio/misc/kmailservice.protocol#1184154
 D             kio/misc/kmailservice.protocol  
 A             kio/misc/ktelnetservice.desktop   kio/misc/telnet.protocol#1184154
 D             kio/misc/rlogin.protocol  
 D             kio/misc/ssh.protocol  
 D             kio/misc/telnet.protocol  

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).


More information about the xdg mailing list