Preventing scripts blocking Amarok - any taker?
Thomas Lübking
thomas.luebking at gmail.com
Thu Dec 16 15:43:42 CET 2010
2¢:
(Imho...) the approach to grant 3rd party plugins (scripts, written by some
random fool ;-) access to the GUI thread is broken by design.
Scripts can paint their UI/changes to QImages and trigger updates to have the
main process allocate/resize a container/widget & map the image on screen in
the next event cycle.
That's not the most efficient way, but a running wild script cannot block the
GUI or anything else as it remains in its own thread (which can be killed from
some GUI thread manager if considered gone crazy and paints in its image over
and over again)
Cheers,
Thomas
More information about the Amarok-devel
mailing list