dropping content onto Plasma

Marco Martin notmart at gmail.com
Tue Mar 24 14:01:34 CET 2009


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?
>
>
> The Good
>
> I think that dropping "random" content on the desktop is a very strong UI
> metaphor. If we can make Plasma accept and Do The Right Thing was all kinds
> of content, that'll make for a nicely self-explaining interface.
> It already works nicely with files. Basically, the applet registers the
> mimetypes it understands and makes sure it loads those, they're passed as
> args to the constructor. Plasma creates an applet accordingly when we drop
> something onto the desktop, or offers applets that "understand" and display
> the mimetypes when there's more than one.
>
>
> The Bad
>
> The above procedure works nicely for local content, such as files. URL's
> are a special kind of draggable content though. As far as I understand, a
> URL doesn't have a mimetype attached, it's either data + mimetype (+ other
> metainformation) or simply a URL.

hmm i don't see any ways beside on dropevent on the containment trying to 
download the url and see what it does contain (for http the header of the 
response would suffice, for other urls like akonadi: i have no idea)





More information about the Plasma-devel mailing list