Prevent user from opening or saving to folder name and minor code cleanup.
Added support for root notification.
Remove %20 from xdg-open pathurls, ie support for filenames with spaces opened from a filemanager.
Detect non-existant paths and a py3 fix.