<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 28, 2014 at 11:46 AM, Alexander Richardson <span dir="ltr"><<a href="mailto:arichardson.kde@gmail.com" target="_blank">arichardson.kde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">2014-10-28 2:12 GMT+00:00 Aleix Pol <<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>>:<br>
> Hi Alexander, guys,<br>
> I was debugging some issues and I came to realize that we're not fetching<br>
> properly the list properties in our Plugins. Currently the<br>
> KPluginInfo::property().toStringList() for kdevgit.desktop is<br>
> QStringList("org.kdevelop.IBasicVersionControl,<br>
> org.kdevelop.IDistributedVersionControl"), meaning that both are taken as<br>
> one. As you'll expect, this has ramifications and should be looked into.<br>
><br>
> I haven't investigated much about why this is happening, hoping that some of<br>
> you know what's going on.<br>
><br>
> Cheers!<br>
> Aleix<br>
<br>
</div></div>Is it run through kcoreaddons_desktop_to_json? If so, the problem is<br>
that it doesn't<br>
know that that property should be interpreted as a list.<br>
<br>
I could add a command line flag listproperties=<comma-separated-list> to<br>
desktoptojson and then we can call<br>
kcoreaddons_desktop_to_json(target foo.desktop LIST_PROPERTIES "prop1,prop2").<br>
Anyone got a better idea?<br>
<br>
I guess the best thing would be to write the .json files directly, but<br>
I don't think the translations<br>
can be handled like that.<br>
<br>
Regards<br>
Alex<br></blockquote><div><br></div><div>Interesting... I hadn't forseen this side-effect. </div><div><br></div><div>I don't have any json files generated here or installed by KDevelop. We could use them though, indeed. Or figure out why the desktop file parser is not taking the fields as StringList as specified by the service type files.</div><div><br></div><div>Aleix </div></div></div></div>