Writing plugins for DO

Asked by thierryn

Hi, I want to try and develop a plugin as well for Gnome-Do...by the way a very very special product..keep it up.

I have no problem to understand the plugins present, but i fail to integrate a new plugin into gnome-do. It appears without any problem in the plugins list I can select it...but after a few seconds it automatically gets deselected again??

Did I do something wrong? I created an almost empty plugin (copy from Epiphany plugin) tried to change the name. Build -> I get the dll file...now do I need to pack it up into a mpack-archive? Where do I need to put it?

Right now I out it up in an mpack archive (with addin.info) and then copy this one (with the dll) to /usr/share/gnome-do/plugins. I change the root.mrep so that i have an entry for my plugin. Then i relaunch gnome-do...I try to activate the plugin as it appears in the list. the dll is then copied to the folder /.local/share/gnome-do/plugins-0.8.1/addins (so I guess the entry in the root.mrep is correct?) But the plugin is not active?

Did I do something wrong? Or is there a simpler way to integrate a plugin during development? I somewhere found to drag and drop the dll file onto the list, but this does not do anything?

Great product and hope to resolve this small issue, and I can start a small plugin as well..

thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Do Plugins Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Chris S. (cszikszoy) said :
#1

You actually shouldn't be modifying or editing ANY of the files under ~/.local/share/gnome-do. Do does all of this for you when you install a plugin.

To install a plugin, simply drag + drop onto the plugins list in the preferences page. If you run Do from the terminal with
"gnome-do --debug" you will be able to see that Do is installing the plugin after you drag + drop.

Every plugin must have an XML file embedded into the plugin. If you look, every plugin includes a "Resoruces" directory in the source. Inside this resource directory, will be (among other things) the XML file. Study these and make a similar one for your plugin.

If you need specific help, please come to our IRC channel, #gnome-do on freenode and I (or any other experienced user there) will be able to help you more.

Can you help with this problem?

Provide an answer of your own, or ask thierryn for more information if necessary.

To post a message you must log in.