<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>
    
<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 id="composer_signature"><div style="font-size:85%;color:#575757">Sent from my Samsung device</div></div><br><br>-------- Original message --------<br>From: Przemek Kamiński <cgenie@gmail.com> <br>Date: 22/03/2016  05:32  (GMT+00:00) <br>To: For KMyMoney development <kmymoney-devel@kde.org> <br>Cc: kmymoney-devel@kde.org <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 id="cm_footer" class="cm_footer"><div id="cm_sent_from">Sent using <a href="https://cloudmagic.com/k/d/mailapp?ct=ti&cv=7.4.15&pv=9.2&source=email_footer_2">CloudMagic Email</a></div></div><br><div id="cm_replymail_content_wrap"><div class="cm_replymail_content_1458624638_wrapper"> On Mon, Mar 21, 2016 at 11:48 PM,             aga <agander93@gmail.com> wrote:<br><div id="cm_replymail_content_1458624638" 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>> https://github.com/CGenie/kmymoney/tree/4.7-lua-plugin/kmymoney/plugins/lua<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>"https://techbase.kde.org/Development/Tutorials/Services/Plugins".<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></body></html>