rem: PLShallowSynchronize(database->appDomain);
add: Bool fileIsNewer = False, release = False; char *path; struct stat stbuf;  if (!database->path) { path = wdefaultspathfordomain(WMGetApplicationName()); release = True; } else { path = database->path; }  if (stat(path, &stbuf) >= 0 && stbuf.st_mtime > database->timestamp) fileIsNewer = True;    if (database->appDomain && (database->dirty || fileIsNewer)) { PLShallowSynchronize(database->appDomain); database->dirty = 0; if (stat(path, &stbuf) >= 0) database->timestamp = stbuf.st_mtime; if (fileIsNewer) { WMPostNotificationName(WMUserDefaultsDidChangeNotification, database, NULL); } }  if (release) wfree(path);
context: WMSynchronizeUserDefaults(WMUserDefaults *database){    /* TODO: check what it should really do */    PLShallowSynchronize(database->appDomain);}