Several plasmoid instances

David Edmundson david at davidedmundson.co.uk
Sat Jul 18 11:19:17 UTC 2015


On Sat, Jul 18, 2015 at 11:49 AM, Evgeniy Alekseev <darkarcanis at mail.ru>
wrote:

> Hi, there!
>
> I'm a developer of several Plasma 5 widgets. After components upgrading
> (if I
> understand correctly the issue has been caused by the upgrading of plasma-
> frameworks to 5.12.0) my users have found that several instances of the
> same
> widget are no longer allowed. (To be more precise they are allowed but show
> the same data.)
>
> There /should/ be no difference until the app developer opts in, with a
line in the .desktop file

X-KDE-PluginInfo-Version=3.0

Can you link to your applet?

I've researched the issue and found that the problem is in data transfer
> between plugin (C++) and ui (QML) plasmoid parts. I believe the issue has
> been
> caused by the fact that:
>
> 1. All plasmoids load the one plugin instance.
> or
> 2. Each plasmoid loads the own plugin instance but all of them use the one.
>
> Is there a correct way to run each plasmoid with own plugin instance and
> to do
> the bijection between plugin and ui in runtime?
>

The only time you'd have a problem is if you used singletons; the solution
in that case is obviously to not use singletons.

--
> Sincerely yours,
> Evgeniy Alekseev
>
> e-mail: darkarcanis at mail.ru
> ICQ: 407-398-235
> Jabber: arcanis at jabber.ru
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150718/ae2a3f75/attachment.html>


More information about the Plasma-devel mailing list