Saving folders on different operating systems?

How would you save e.g. save states and configs on different operating systems?
On Windows I would save it in “My Documents” using: System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);

Is this the same for MacOS? What about Linux and the myriads of different Linux distributions? What about Xbox and Playstation?

use Application.persistentDataPath, but if you want to save in my documents in linux and I think on mac you can check the Environment variable called “HOME”.