> As has been pointed out, you can't decide which variables are important based on their size.
What about, after sorting by size, it only imports special variables first, and only then the others?
(In my case, it would mostly remove `NIXPKGS_QT6_QML_IMPORT_PATH`.)
Something like this: https://gitlab.winehq.org/tinozzo123/wine/-/commit/8c230ad92ce9f61c1f6402c8…
Importing _something_ is better than nothing, and this achieves the goal of keeping popular configuration envars like `DXVK_FRAME_RATE`. IMO, it is absolutely worth the code bloat.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/9423#note_121904
> As it is right now, with all envars removed, then XDG_DATA_DIRS is always removed as well, right?
It's remapped to WINE_HOST_XDG_DATA_DIRS so that Wine can access it. But of course if it's large that doesn't help, hence the possibility for the user to define it themselves to a more reasonable value.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/9423#note_121894