Activation files

The next thing to do may be to port from a .gnorba file to a bonobo-activation .server file. You no longer need a .desktop file for applets. A .gnorba looks something like this :

[blah]
type=exe
repo_id=IDL:GNOME/Applet:1.0
description=Blah
location_info=blah-de-blah
	

Your .server file should look like this :

<oaf_info>

<oaf_server iid="OAFIID:BlahApplet"
            type="exe"
            location="blah-de-blah-2">

        <oaf_attribute name="repo_ids" type="stringv">
                <item value="IDL:Bonobo/GenericFactory:1.0""/>
                <item value="IDL:Bonobo/Unknown:1.0"/>
        </oaf_attribute>
        <oaf_attribute name="name" type="string" value="Blah Factory"/>
        <oaf_attribute name="description" type="string" value="Blah De Blah"/>

</oaf_server>

<oaf_server iid="OAFIID:BlahApplet"
            type="factory"
            location="OAFIID:BlahApplet_Factory">

        <oaf_attribute name="repo_ids" type="stringv">
                <item value="IDL:GNOME/PanelAppletShell:1.0"/>
                <item value="IDL:Bonobo/Control:1.0"/>
                <item value="IDL:Bonobo/Unknown:1.0"/>
        </oaf_attribute>
        <oaf_attribute name="name" type="string" value="Blah Applet"/>
        <oaf_attribute name="description" type="string" value="Blah De Blah"/>
        <oaf_attribute name="panel:category" type="string" value="Amusements"/>
        <oaf_attribute name="panel:icon" type="string" value="blah-de-blah.png"/>

</oaf_server>

</oaf_info>
	

A lot of this should be copied and pasted. The most important bits are setting "panel:category" and "panel:icon". The "panel:category" attribute sets what directory the applet should go in the "Add Applet" menu. The "panel:icon" attribute specfies the icon that should be displayed in the "Add Applet" menu.