New handling for URI scheme handlers

Aaron J. Seigo aseigo at kde.org
Tue Oct 5 09:35:46 PDT 2010


On Tuesday, October 5, 2010, Bastien Nocera wrote:
> On Tue, 2010-10-05 at 18:01 +0200, Thiago Macieira wrote:
> > Em Terça-feira 05 Outubro 2010, às 17:36:52, Damjan Jovanovic escreveu:
> > > On Tue, Oct 5, 2010 at 5:32 PM, Bastien Nocera <hadess at hadess.net> 
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 love it. Does it work in KDE?
> > 
> > No.
> > 
> > KDE requires that you install a .protocol file (which is just a .desktop
> > file with a different extension) in /usr/share/kde4/services.
> 
> I should add that using a mime-type means that you get to have an
> mmap'ed binary cache, which is probably the only gain above the KDE
> implementation.

KDE provides a mmap'd binary cache of the contents of the .protocol files. it 
would be far too slow otherwise. i think the general implementation is not 
that different, only in the detail of "is the mimetype system a good place to 
put additional sort-of-like-but-not-quite application associations?" question.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20101005/c0602cce/attachment.pgp>


More information about the xdg mailing list