Hello everyone. I use many services that use XDG (mainly AI projects) and these projects cache of XDG can be huge in size. The cache location can be manually defined with XDG_CACHE_HOME a user-variable. I was wondering, is there a way to define an alternative for an environment variable? If the first value was not available, try the seconds value, something like this.
This is because I use Whisper for speech recognition, and Godot for making game, and I store the project whisper files in an external drive which the project is stored on it as well. meanwhile I don't connect this Drive to my system all the time and Godot throws errors for not being able to write to that directory.
Please stick to Environment-Variable solutions as I don't want to find a settings in every program that has this issue.I'm also okay with running PowerShell scripts to fix this.
utterly unnecessary Info in case someone asks: Laptop, Ryzen 4800h, 2060m, 16GB RAM... running latest windows 10 updates and I have access admin access to the system