If you constantly face an annoying 'can't write document presets file ' dialogue every time you close Adobe Photoshop 2022, or if you have issues with Illustrator Libraries not connecting, follow these steps.

This solution is taken from a previous contribution to the Adobe Online Forum.