<br><br><div class="gmail_quote">On Wed, Jul 2, 2008 at 1:23 PM, Richard Moore <<a href="mailto:richmoore44@gmail.com">richmoore44@gmail.com</a>> wrote:<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 7/2/08, Richard Dale <<a href="mailto:richard.j.dale@gmail.com">richard.j.dale@gmail.com</a>> wrote:<br>
> But what would be really nice would be that the package structure defined a<br>
> default name for the main script of 'main', but that you could override it<br>
> by including a 'X-Plasma-MainScript' entry in the metadata.desktop like this<br>
> for instance:<br>
><br>
> X-Plasma-MainScript=code/clock.rb<br>
><br>
> It this possible, and is it a good idea?<br>
<br>
</div>I think that would make sense from the JS point of view too.</blockquote><div>OK, please find attached a patch to try it out. The entry actually looks like this now without the 'code/' prefix:<br><br>X-Plasma-MainScript=clock.rb<br>
<br>It might need thinking through a bit more though as there isn't a check for the required file main anymore.<br><br>-- Richard<br><br><div class="Ih2E3d"></div> </div></div><br>