XDG_DATA_DIR should be XDG_DATA_HOME

This commit is contained in:
Tim Felgentreff 2023-02-24 23:14:35 +01:00 committed by GitHub
parent df1775cbf5
commit 63ccee588b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,7 +210,7 @@ static void SetUserDataPath(char* data_path) {
return;
}
}
char *dataDir = getenv("XDG_DATA_DIR");
char *dataDir = getenv("XDG_DATA_HOME");
if (dataDir) {
strcpy(data_path, dataDir);
strcat(data_path, "/stratagus/");