diff --git a/sentinelhub/config.py b/sentinelhub/config.py
index b639f714..78470b3a 100644
--- a/sentinelhub/config.py
+++ b/sentinelhub/config.py
@@ -216,5 +216,5 @@ def _mask_credentials(self, value: str) -> str:
     @classmethod
     def get_config_location(cls) -> str:
         """Returns the default location of the user configuration file on disk."""
-        user_folder = os.path.expanduser("~")
-        return os.path.join(user_folder, ".config", "sentinelhub", "config.toml")
+        config_folder = os.getenv("XDG_CONFIG_HOME", os.path.expanduser("~/.config"))
+        return os.path.join(config_folder, "sentinelhub", "config.toml")