Adding a 'X-Plasma-MainScript' entry to plasmoid metadata.desktop files?

Richard Dale richard.j.dale at gmail.com
Wed Jul 2 17:02:28 CEST 2008


On Wed, Jul 2, 2008 at 1:23 PM, Richard Moore <richmoore44 at gmail.com> wrote:

> On 7/2/08, Richard Dale <richard.j.dale at gmail.com> wrote:
> > But what would be really nice would be that the package structure defined
> a
> > default name for the main script of 'main', but that you could override
> it
> > by including a 'X-Plasma-MainScript' entry in the metadata.desktop like
> this
> > for instance:
> >
> > X-Plasma-MainScript=code/clock.rb
> >
> > It this possible, and is it a good idea?
>
> I think that would make sense from the JS point of view too.

OK, please find attached a patch to try it out. The entry actually looks
like this now without the 'code/' prefix:

X-Plasma-MainScript=clock.rb

It might need thinking through a bit more though as there isn't a check for
the required file main anymore.

-- Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/panel-devel/attachments/20080702/cf08b413/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: custom_main_script.patch
Type: text/x-patch
Size: 5705 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080702/cf08b413/attachment-0001.bin 


More information about the Panel-devel mailing list