How to develop plugins for Scratch

Asked by Carc on 2012-05-13

Is there any info about developing plugins for scratch?
Can I develop a plugin which is not part of the scratch code? If so, where to place it so that scratch can load it?

Question information

Language:
English Edit question
Status:
Answered
For:
Scratch Edit question
Assignee:
No assignee Edit question
Last query:
2012-05-13
Last reply:
2013-11-28
Mario Guerriero (mefrio-g) said : #1

You can follow standard libpeas mode. Try to follow generic examples from libpeas trunk http://git.gnome.org/browse/libpeas/tree/peas-demo/plugins or from scratch trunk http://bazaar.launchpad.net/~elementary-apps/scratch/scratch/files/head:/plugins/

Generally you have to generate a pluginname.so file and put it in lib/scratch/plugins/pluginname with a pluginname.plugin file

I will write some better documentation soon in order to provide better informations about scratch plugins making

Jason Pezzimenti (sv-jase) said : #2

Folder lib does not contain a directory called "scratch" on Elementary OS Luna. Can't find the directory to place my extension. Have you written the documentation yet, Mario?

Jason Pezzimenti (sv-jase) said : #3

Ok, I've got it. The correct path is /usr/lib/scratch/plugins/pluginname

Can you help with this problem?

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

To post a message you must log in.