Then gksudo should be addressed. sudo alone with graphical apps can wreak havok with file permissions in some circumstances.