4.

Use the XDG Base Directory Specification!

xdgbasedirectoryspecification.com

The XDG Base Directory Specification specifies the directories to store user application data on Linux. Use it!