PDA

View Full Version : plugin basics


jimyoung
May 19th, 2007, 05:39 PM
Hi all. I know i must be missing something obvious here, but how do i get my custom plugin to work? I have tried downloading the templates, adn the hello world example, but they provide not much insight. the hello world contains its own schema file, but i'm not sure how to install it.

I have created a custom plugin and tried to integrate it into the compiz/plugins source folder.I have also added my own schema information into their compiz.schema file. When i do a make install, it modifies all of the gconf schemas for me (or so it says) but when I do a gconf-editor my new schema information nisn't in there.

Can someone just spell out the steps I need to do to get my plugin to work? I have it compiling, but it wont show up in the compiz-settings program.

Thanks!

Jim

mikedee
May 19th, 2007, 05:43 PM
All of the example plugins come with a Makefile which installs them into ~/.compiz/plugins/ You should be able to modify this for your plugin.

There is no need to integrate it with the compiz source because it can be compiled separately.

Once you have lib[your_plugin].so in ~/.compiz/plugins/ then you should be able to add your plugin to gconf or ini directly and they will load. Restart compiz from a commandline to see any loading errors.

jimyoung
May 19th, 2007, 05:49 PM
Thanks for the tips, and thnat will greatly simplify my working environment

the problem i had was in the schema file (it works now). First, i wasn't sure how to install the schema, and I finally figured out :
"gconftool-2 --install-schema-file=/path/to/myschemafile.schema"

THEN, i found out I need to run this as the user running compiz, not as root.

Thanks a lot.