Sharable KCModules?

Ben Cooksley bcooksley at kde.org
Fri Dec 9 11:38:46 UTC 2011


On Fri, Dec 9, 2011 at 11:16 PM, David Baron <d_baron at 012.net.il> wrote:
> On Friday 13 Kislev 5772 11:38:36 Sebastian Kügler wrote:
>> On Thursday, December 08, 2011 19:52:36 David Baron wrote:
>> > Is there a way, probably in the desktop file, to make a KCModule
>> > sharable? Right now, the first plasma object to get it owns it.
>> >
>> > I am not worried about syncronization between instances that modify data,
>> > but  would be interested in that eventually is this thing be possible at
>> > all.
>> >
>> > Thanks in advance.
>>
>> What exactly are you trying to achieve?
>
> I have a krunner and viewer which can access the configuration dialog.
>
> There is now a plasmoid that will also execure runners using RunnerManager.
>
> Whichever one launches first, plasmoid in plasma-desktop or krunner and
> afterwards I add the plasmoid, will "own" the KCModule. The other one will get
> the dialog as "already open in ...."

Once you have finished with the control module (ie. when closing the
configuration dialog) you need to free it by deleting it.
Then it will be usable in both locations.

This is what System Settings does when returning to the module selection screen.

>
> Since users may well be using both, I would like to avoid this problem.

Regards,
Ben

> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel


More information about the Plasma-devel mailing list