README 1.12 KB
Newer Older
Johan Dahlin's avatar
0.4.0    
Johan Dahlin committed
1
2
libautilus-extension Python bindings
====================================
Johan Dahlin's avatar
Johan Dahlin committed
3

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
4
These are unstable bindings for the nautilus extension library
Johan Dahlin's avatar
Johan Dahlin committed
5
introduced in Gnome 2.6.
Johan Dahlin's avatar
Johan Dahlin committed
6
7
8
9
10
11

For examples and documentation check the examples sub directory.

Requirements
============

12
Nautilus  2.32.0
13
Python    2.x or 3.x
14
PyGObject 2.28.0
Johan Dahlin's avatar
Johan Dahlin committed
15

16
17
18
19
20
21
22
23
24
25
26
27
28
29
As of v1.2.0 the nautilus-python bindings can be built with either python3
or python2 support.  Ensure the $PYTHON environment variable is pointed
at your preferred python executable before running configure or autogen.

Running Extensions
==================
As of nautilus-python 1.2.0, scripts are loaded in the following order:

  1. $XDG_DATA_HOME/nautilus-python/extensions (i.e. ~/.local/share/...)
  2. nautilus_prefix/share/nautilus-python/extensions (i.e. ~/Development/...)
  3. $XDG_DATA_DIRS/nautilus-python/extensions (i.e. /usr/share/...)

Simply copy your python scripts into that folder and restart Nautilus.

Johan Dahlin's avatar
Johan Dahlin committed
30
31
Problems
========
32
33
It's currently not possible to reload a python script without
restarting nautilus.
Johan Dahlin's avatar
Johan Dahlin committed
34

35
36
Run nautilus with the NAUTILUS_PYTHON_DEBUG=misc environment variable to 
print out debug information.