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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel