<br><br><div class="gmail_quote">2008/11/14 Aaron J. Seigo <span dir="ltr"><<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Friday 14 November 2008, Richard Dale wrote:<br>
> I think 'examples' is a better place than 'test', and that we are better<br>
> off dividing them into 'applets' and 'dataengine' directories like the ruby<br>
> ones.<br>
<br>
</div>agreed ... it also follows other places in kde better.<br>
<div class="Ih2E3d"><br>
> I prefer the python names like 'pyclock' or 'rbclock' to 'python_clock' or<br>
> 'ruby_clock'.<br>
><br>
> Do we need to include 'plasma_applet' or 'plasma_dataengine' in all the<br>
> names?<br>
><br>
> Should the names contain hyphens or underscores instead?<br>
<br>
</div>it depends on which names. =)<br>
<br>
* in the file system: ruby/examples/applets/clock should be clear?</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
* installation dir: python_<appletname>, ruby_<appletname><br>
<br>
* .desktop file: pasma-applet-python-<appletname>.desktop</blockquote><div>OK, just tried that. I have my engine in dataengines/time, the name in the metadata.desktop file is 'ruby-time', and I install with this command:<br>
<br>plasmapkg --install time --type dataengine<br><br>I get:<br><br>/home/rdale/.kde/share/apps/plasma/dataengines/ruby-time<br>/home/rdale/.kde/share/kde4/services/plasma-dataengine-ruby-time.desktop<br><br>So it looks like plasmapkg goes on the name inside the metadata.desktop file for the destination directory, and so dataengines/ruby-time has a hyphen in it, rather than an underscore.<br>
<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
this just follows the conventions we already have in place and follow for the<br>
c++ side of life.<br>
<br>
the rational for all of it is to make it easy to use traditional command line<br>
tools to sort through things, e.g.:<br>
<br>
ls ~/.kde/share/kde4/services/plasma-applet*<font color="#888888"></font></blockquote><div>Yes, I certainly agree with that - this is an example of 'Convention over Configuration' as long as we can establish the conventions before we have too many applets.<br>
<br>-- Richard<br></div></div><br>