![]() |
![]() |
![]() |
![]() |
Since an applet is a ukuicomponent component, you must write a .server file so that the ukuicomponent activation daemon is aware that your component exists and how to activate it. Copy and paste is your friend here ...
<oaf_info> <oaf_server iid="OAFIID:My_HelloApplet_Factory" type="exe" location="test-ukuicomponent-applet"> <oaf_attribute name="repo_ids" type="stringv"> <item value="IDL:UkuiComponent/GenericFactory:1.0"/> <item value="IDL:UkuiComponent/Unknown:1.0"/> </oaf_attribute> <oaf_attribute name="name" type="string" value="Hello World Applet Factory"/> <oaf_attribute name="description" type="string" value="My first applet factory"/> </oaf_server> <oaf_server iid="OAFIID:My_HelloApplet" type="factory" location="OAFIID:My_HelloApplet_Factory"> <oaf_attribute name="repo_ids" type="stringv"> <item value="IDL:UKUI/Vertigo/UkuiPanelAppletShell:1.0"/> <item value="IDL:UkuiComponent/Control:1.0"/> <item value="IDL:UkuiComponent/Unknown:1.0"/> </oaf_attribute> <oaf_attribute name="name" type="string" value="Hello World Applet"/> <oaf_attribute name="description" type="string" value="My first applet for the UKUI2 panel"/> <oaf_attribute name="panel:icon" type="string" value="ukui-applets.png"/> </oaf_server> </oaf_info>
Probably the most important thing to note here is that, unlike .server files for other ukuicomponent components, applet .server files contain a special attribute called 'panel:icon'. This is used by the panel to display an entry for the applet in the 'Add to Panel' dialog.