Zim is a desktop wiki I highly recommend. Recently I’ve switched to another desktop and after copying my whole home directory, zim default notebooks did not open anymore. This was because I’ve changed my username, which has caused a change in the location of my zim notebooks. This can be easily fixed in the zim configuration file, you will find it at this location:

~/.config/zim/notebooks.list

Simply change the paths in this config file, the format is very straightforward (hint: vim command to substitute oldusername with newusername in the whole file would be: :%s/oldusername/newusername).

[NotebookList]
Default=file:///home/zabuch/zim/notebook1
file:///home/zabuch/zim/notebook1
file:///home/zabuch/zim/notebook2
file:///home/zabuch/zim/notebook3

[Notebook]
uri=file:///home/zabuch/zim/notebook1
name=Notebook1
icon=None

[Notebook]
uri=file:///home/zabuch/zim/notebook2
name=Notebook2
icon=None

[Notebook]
uri=file:///home/zabuch/zim/notebook3
name=Notebook3
icon=None