Stacktrace when downloads_dir is not set in the configuration file
If downloads_dir is not set into sat.conf file, launching cagou returns:
Window: virtual keyboard not allowed, single mode, not docked
Traceback (most recent call last):
File "/Users/xavier/.local/bin/cagou", line 23, in <module>
cagou.run()
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/__init__.py", line 37, in run
host = G._host = cagou_main.Cagou()
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/core/cagou_main.py", line 379, in __init__
if not os.path.exists(self.downloads_dir):
File "/Users/xavier/.local/bin/../lib/python2.7/genericpath.py", line 26, in exists
os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Adding it fixes this problem.
I'd recommend setting a default value when it is not set by the user.