https://bugs.winehq.org/show_bug.cgi?id=56941
--- Comment #2 from tinozzo123@gmail.com --- I'm using a Linux distribution that doesn't respect FHS (NixOS), and each "derivation" is isolated in the filesystem. That is, libraries are not all put together in /lib. Some applications (e.g. Qt, for instance if you use KDE Plasma) are unable to find their libraries unless you have environment variables pointing to them, which causes them to be massive since they have to list every individual path to the library (e.g. `XDG_DATA_DIRS` and `QT_PLUGIN_PATH`, on my end the former is larger than 20000 characters by itself).
IMO (assuming that the issue is EA app's fault, and not Wine's), I don't think that a workaround for this situation would be a bad idea. Something like "if the total size exceeds 32760, exclude the largest environment variables until you get under 32760". Considering that: - Having more than 32760 characters can't happen on Windows in the first place, so it's "sensible behavior" for a Windows application to assume that. - Whatever is excluded is unlikely to be used by the Windows app (e.g, in my case, I doubt any Windows app would care about `XDG_DATA_DIRS`). - The alternative would be for the user to put a workaround manually (like I do here: https://github.com/ValveSoftware/Proton/issues/6766#issuecomment-1819822798)
I'm not a Wine maintainer, though, so this is not my decision.