On Mon Aug 19 12:03:23 2024 +0000, Rémi Bernon wrote:
I don't think this can work, an environment variable is inherently a per-process setting and the graphics driver needs to be the same for the entire prefix (or at least for a given desktop). Wine doesn't restrict how prefix are started and it would be up to downstream wrappers to change the prefix driver when starting it, based on an environment variable if they want and only allow prefixes to be started with the main process.
This is intended as a quicker and less permanent way (registry is relatively permanent) to test new graphics drivers (like winewayland) or the X11 support on macOS (the latter case is probably much rarer though)
Once explorer.exe loads along with the prefix initialization, the driver variable probably has no effect (so there shouldn't be weird issues like loading X11 driver after winewayland is driving the Wine prefix); I haven't tested that theory yet though