Gnome Nautilus Extensions

the quick but hopefully clean tutorial ... in pure C.

by Heiko Voigt, Oktober 2009

A simple Example

So you want to write a simple nautilus extension but do not know where to start? First of all: Download my very simple example to get you started. It might even be the only thing you need.

tar xzf simple-nautilus-extension.tgz
cd simple-nautilus-extension
make
    
become root or give yourself write access to the /usr/lib/nautilus/extensions-2.0/ folder and:
make install
    
For debugging and getting the actual output on the commandline it helps to kill nautilus and manually start it from the Terminal with
nautilus
    
again.

For the example I basically plugged everything from Nautilus Extensions together in a project, wrote a simple Makefile and compiled it. So now you find only two files in there: the Makefile itself and a plugin.c which are pretty much explained by the link above.

To keep things short I will stop here so you can play around with the example and let the source speak for itself.

I created this tutorial and example because I needed a starting point to port the git plugin git-cheetah to nautilus.

Links

Here are the resources I used to assemble this example:

Comments

Send a comment