It is supposed to solve the problem of krita trying to open the resource folder in .local/share/krita/krita/krita.
I changed some stuff in the file KoResourcePaths.cpp, and it seems to work now.
Please notice that I must confess I have not probably seen the "Big picture" of the file KoResourcePaths.cpp. T us, maybe the few changes I done may have an impact in the others part of Krita using this file.