Howto:Hacking Inkscape to add Canvas support: Difference between revisions

Jump to navigation Jump to search
Line 82: Line 82:


Installing is as simple as copying the script (unless it resides in your path) and its INX file to the inkscape/share/extensions ($HOME/.config/inkscape/extensions) directory. (If you install a script in your home directory be sure to copy the dependencies.)
Installing is as simple as copying the script (unless it resides in your path) and its INX file to the inkscape/share/extensions ($HOME/.config/inkscape/extensions) directory. (If you install a script in your home directory be sure to copy the dependencies.)
There are two text files per extension: a Python program with file extension .py and a menu description with file extension .inx. The syntax of the latter file is that of XML while its semantics are specific to Inkscape. These files are located in different directories on different platforms:
* Linux: ~/.config/inkscape/extensions/
* Mac OS X: /Applications/Inkscape.app/Contents/Resources/extensions/
* Windows: C:\Program Files\Inkscape\share\extensions\


On Linux you willhave to make the python script executable first if you haven't done this yet. This is usually done by the usual command (or in your preferred file manager):
On Linux you willhave to make the python script executable first if you haven't done this yet. This is usually done by the usual command (or in your preferred file manager):

Navigation menu