<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Oct 8, 2017 at 2:34 PM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On dimanche 8 octobre 2017 13:02:59 CEST Mark Gaiser wrote:<br>
> What i want is not just some storage. The storage (the data that describes<br>
> the tags and makes the connection to the files) is something you don't want<br>
> to parse on every request.<br>
> Also, it could get big if you tag thousands (or millions) of files.<br>
> You want to parse that data (json file) once and keep it in memory for<br>
> efficient lookup/creation/query purposes.<br>
><br>
> I don't really want nor need it up and running when the user logs in, but<br>
> having it start up when something from that storage is requested does seem<br>
> like the way to go.<br>
<br>
</span>Yes, so use a kiod module, started on demand.<br>
This way it even works outside a plasma session.<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"></div></div></blockquote></div><br></div><div class="gmail_extra">That sounds like the way to go :)</div><div class="gmail_extra"><br></div><div class="gmail_extra">But then i still miss one rather important detail that i can't really find anywhere..</div><div class="gmail_extra">Lets say I have that module and call it "tags2" (as Baloo already has tags, therefore tags2 to prevent naming issues).</div><div class="gmail_extra"><br></div><div class="gmail_extra">So i make a dbus service file named:</div><div class="gmail_extra">  Name=org.kde.tags2<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">And in the "tags2.json" i put:</div><div class="gmail_extra"><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">{
    "KPlugin": {
        "Description": "Put tags on files and folders.",
        "Name": "Tags 2",
        "ServiceTypes": [
            "KDEDModule"
        ]
    },</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">    "X-KDE-DBus-ModuleName": "tags2",
    "X-KDE-DBus-ServiceName": "org.kde.tags2"
}</pre></div><div class="gmail_extra">What do i do in the client side code to start this module?</div><div class="gmail_extra">That "client side" can be an IO slave, but it can also be some special Tags helper classes to create a new tag name with description and icon or such.</div><div class="gmail_extra">I need to call something to trigger KIOD to start this module, but i can't figure out what.</div><div class="gmail_extra"><br></div><div class="gmail_extra">How do i see qCDebug output from kiod plugins anyhow?</div><div class="gmail_extra"><br></div></div>