<div dir="ltr"><div>OK, seem to have found it:<br><br><a href="https://mail.kde.org/pipermail/kmymoney-devel/2014-March/012295.html">https://mail.kde.org/pipermail/kmymoney-devel/2014-March/012295.html</a><br><br></div>P.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 9:15 AM, allan <span dir="ltr"><<a href="mailto:agander93@gmail.com" target="_blank">agander93@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
    
<div>There may be more than that required.  There was some discussion here a while back. You'll need to search the list.</div><div>Allan</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div style="font-size:85%;color:#575757">Sent from my Samsung device</div></div><div><div class="h5"><br><br>-------- Original message --------<br>From: Przemek Kamiński <<a href="mailto:cgenie@gmail.com" target="_blank">cgenie@gmail.com</a>> <br>Date: 22/03/2016  05:32  (GMT+00:00) <br>To: For KMyMoney development <<a href="mailto:kmymoney-devel@kde.org" target="_blank">kmymoney-devel@kde.org</a>> <br>Cc: <a href="mailto:kmymoney-devel@kde.org" target="_blank">kmymoney-devel@kde.org</a> <br>Subject: Re: plugin development help <br><br><div>This is what my question was about. I do have the rc file (see the repo I linked to). Problem is that I don't want to install it into system directory when developing. I tried to run it with<div><br></div><div>KDEBASE=/tmp ./kmymoney</div><div><br></div><div>but with no success.</div><div><br></div><div>P.<br><br><div><div>Sent using <a href="https://cloudmagic.com/k/d/mailapp?ct=ti&cv=7.4.15&pv=9.2&source=email_footer_2" target="_blank">CloudMagic Email</a></div></div><br><div><div> On Mon, Mar 21, 2016 at 11:48 PM,             aga <<a href="mailto:agander93@gmail.com" target="_blank">agander93@gmail.com</a>> wrote:<br><div style="overflow:visible"><blockquote style="margin:0;border-left:#d6d6d6 1px solid;padding-left:10px"><br><br>On 21/03/16 19:47, Przemysław Kamiński wrote:<br>> Hello,<br>><br>> I would like to add Lua scripting support to KMyMoney as a plugin. This<br>> is what I have as a draft:<br>><br>> <a href="https://github.com/CGenie/kmymoney/tree/4.7-lua-plugin/kmymoney/plugins/lua" target="_blank">https://github.com/CGenie/kmymoney/tree/4.7-lua-plugin/kmymoney/plugins/lua</a><br>><br>> One question -- when I compile KMyMoney and install it into some /tmp<br>> directory -- does the kmymoney bin have to be executed in some special<br>> way? I mean I add an .rc file to add 'Lua...' to the Tools menu, I guess<br>> it has to find that .rc file somehow. If I just run<br>> /tmp/usr/bin/kmymoney the menu entry is not there.<br>><br>> Regards,<br>> Przemek<br><br>Where .rc files get installed is specified in the CMakeLists.txt file.<br>Generally, /usr/share/kde4/apps/<yourpluginname>/.<br><br><br>What is needed is something on the lines of<br>kmymoney/kmymoney/plugins/csvimport/kmm_csvimport.rc.<br><br>"<!DOCTYPE kpartgui><br><kpartgui name="kmymoneyplugin-csvimporter" version="0"><br>   <MenuBar><br>     <Menu name="file"><br>       <Menu name="import" append="import_merge"><br>         <Action name="file_import_csv" /><br>       </Menu><br>     </Menu><br>   </MenuBar><br></kpartgui><br>", which you'd need to adjust.<br><br>There are some tutorials like<br>"<a href="https://techbase.kde.org/Development/Tutorials/Services/Plugins" target="_blank">https://techbase.kde.org/Development/Tutorials/Services/Plugins</a>".<br>I haven't tried this for some while so cannot guarantee all is OK, but <br>it should give you a start.<br><br>Also, have a look at the csvimporter plugin, which I cobbled together <br>from various sources.<br><br>Read them thoroughly to get an understanding.  You know where we are.<br><br>Allan<br></blockquote></div></div>            </div>            </div></div></div></div></div></blockquote></div><br></div>