Sakartu/next — pull request #16 by ekohl (2011-10-31 11:43:32+00:00)
Title: Various improvements

Note that it changes a few things in config handling. First of all it attempts to use the XDG standard (http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html) if pyxdg is available. If it's not,there's a compatibility available. In XDG-mode it also moves the database location to $XDG_DATA_HOME/next/next.db and config to $XDG_CONFIG_HOME/next/next.conf, but there is no code to move existing stuff. If you agree I think we should fully remove the compat layer.

Using pyxdg also has the benefit of creating a /etc/next/next.conf. Currently the first one found is parsed, prefering user ones, but this could be changed to inherit from system wide files.

It also introduces hardcoded defaults to run without a config. In a later stage I'd like to move away from a config dict and just use the ConfigParser object. This should allow us modify the config from within next and also write a config back to disk.