Sorry, but it is not Compose related question. All operating system may have their own system for settings.
For Linux and MacOS good practice to use ~/.my_app_settings directories. But on MacOS you will need additional permissions.
Another way is to store settings in Application Content folder on MacOS.