<div dir="ltr"><div>Iv looked into this and was using the same minimal template, The issue still is I cant find a way to initialize the DBus adaptor without having a main, I did follow the KDE4 DBus tutorials initially on getting the DBus to work as KDE 5 has no DBus documentation yet for plasmoids. <br><br>Seems like a no go for plasmoid so launched it as a Qt5 Application instead. <a href="https://github.com/AIIX/Mycroft-Ai-QtApplication">https://github.com/AIIX/Mycroft-Ai-QtApplication</a> <br><br></div>Thanks for replying tho i was running around in circles with getting the main function to work.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 3, 2016 at 4:41 AM, Marco Martin <span dir="ltr"><<a href="mailto:notmart@gmail.com" target="_blank">notmart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Friday 01 July 2016, Aditya Mehra wrote:<br>
> Request you to please guide me on why the main function doesn't work<br>
> in plasma5 and how can i fix it.<br>
> There is no documentation available on C++/QML plasmoid/widgets for<br>
> plasma 5 so asking for help here.<br>
><br>
> Thanks,<br>
> Aditya<br>
<br>
</span>look at<br>
<a href="https://quickgit.kde.org/?p=plasma-framework.git&a=tree&h=747500851adcb1e5ccbb1a902865c6aee9327d83&hb=990662800da9e7e39066bae41f34efcd8316b50f&f=templates%2Fcpp-plasmoid%2Fsrc" rel="noreferrer" target="_blank">https://quickgit.kde.org/?p=plasma-framework.git&a=tree&h=747500851adcb1e5ccbb1a902865c6aee9327d83&hb=990662800da9e7e39066bae41f34efcd8316b50f&f=templates%2Fcpp-plasmoid%2Fsrc</a><br>
for a minimal template (kdevelop should also have a new qml/c++ plasmoid<br>
template that uses this).<br>
and yes, as Kevin says, it has no main, is something that gets loaded by<br>
plasmashell<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Marco Martin<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</font></span></blockquote></div><br></div>