dropping content onto Plasma

Sebastian Kügler sebas at kde.org
Tue Mar 24 16:40:11 CET 2009


On Tuesday 24 March 2009 15:24:11 Dominik Haumann wrote:
> On Tuesday 24 March 2009, Sebastian Kügler wrote:
> > The short version
> >
> > Is there a way to offer plasma applet creation based on mimetypes of
> > content dropped onto Plasma also for URLS?
> >
> > [...]
> >
> > I'd like to have this fine mechanism also working URLs and be a bit
> > smarter about that. I'm not sure about possible solutions, though.
> > Guessing based on the dropped content would work for most cases (akonadi:
> > as protocol is clear), but might be a bit tedious (impossible) to figure
> > out for every mimetype in the world (especially if you start doing it
> > based on file extensions). Probing mimetypes of remote files sounds icky
> > to me as well. Maybe there is some code for this problem in KDE already?
>
> KProtocolInfo [1] comes to my mind, which is used (iirc) by e.g. Konqueror
> (Dolphin?) to determine whether a url is listable (in terms of file
> listings), readable, etc. ...but this sounds as if you need much more.

Thanks for the pointer, I'll have a look at KProtocolInfo.
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090324/ceef0ad8/attachment.sig 


More information about the Plasma-devel mailing list