My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Development  
This page contains some helpful pointers on developing NautilusSvn
Featured, Phase-Implementation
Updated Feb 4, 2010 by brucevdk...@gmail.com

Introduction

NautilusSvn is pretty much like any other typical Python program, except it's a Nautilus extension. This has been known in the past to cause some problems, for example with threading.

Finding your way around the wiki

There are a couple of pages in the wiki relevant for developers:

  • CodingStyle serves as an introduction to the style we use for our code (also see PEP 8).
  • See Unicode for information on how to properly handle Unicode.
  • Packaging describes how NautilusSvn should be packages for a number of distros.
  • Architecture is used for discussion and decisions related mostly to the architecture of NautilusSvn. Also see pages labeled Phase-Implementation and Phase-Design.

Tips

Organizing your code

See DevelopmentInstallation

Starting Nautilus

When modifying NautilusSvn you'll have to restart Nautilus quite often. So when you're working on NautilusSvn quit Nautilus first (nautilus -q) and then start it up with:

You can start Nautilus using this alias by:

$ nautilus --no-desktop <directory to start in>

Whenever you want to reload any changes, simply close the window and start it back up again once you're done.

Patches

Patches can either be attached to a relevant issue or submitted to the mailing list.

Comment by project member brucevdk...@gmail.com, Dec 24, 2008

I used to have this in my .bash_aliases:

nautilus-testing () {
        mkdir /tmp/nautilus-testing; 
        TMPDIR=/tmp/nautilus-testing nautilus --no-desktop "$1"
}

This used to allow you to run two Nautilus instances next to each other, one for development and the other for normal use. Note that the two instances would share the same NautilusSvn? extension, but as long as you didn't restart changes wouldn't be loaded.

Then came Nautilus 2.24.1 and this stopped working.

Also I found out that setting TMPDIR to a non-existing directory would cause the thumbnailer (for PDFs etc.) to crash Nautilus.


Sign in to add a comment
Powered by Google Project Hosting