Open markstinson opened 1 year ago
I don't really want to mess with things inside of prefixes, as that could cause unwanted breakages or re-downloads of similar assets later. In particular, this could cause a metered connection to churn through data quite a bit.
I'll contemplate this, but chances are low that I'll implement it. Thank you for opening the issue regardless!
Sure. No worries. I figured it was the Windows complimentary to the proton_dist.tar. The proton_dist.tar is a safe, easy, guaranteed huge space saver. The space saved removing vcredist may not be as much, and being spread out, a bit more complicated to gather for removal.
And you're right.
I've personally removed them from Steam installs before without issue. But everyone's mileage varies.
If someone feels to need to remove vcredist (like myself), it could be done with a script. Just like if someone wants to personally remove LANG files from their game to save space -- it's not always text strings given their sound & image assets too.
This enhancement is definitely a backburner kind of thing for now, especially if maintaining a "best user experience" for steam-deck-utilities. Thanks for the review and consideration.
I don't really want to mess with things inside of prefixes, as that could cause unwanted breakages or re-downloads
What about hard linking them to a single copy of each on the internal drive?
Steam actually recommends to use their "Common Redistributables" setting in steamworks now which all use a single download in the Steamworks Shared folder and not the install.vdf file (which required you to include the file). Many if not most developers have removed them... On my windows machine that has a few hundred games installed a total of 3 copies were found, 2 of those were from games, the 3rd being the Steamworks Shared.
vcredist bundled with games create a lot of accumulated wasted space. They are stored in each game's prefix directory. Not all games have them. In addition, folks will change the name of the SD Cards so their mount on /run/media/sd-card-name is not consistent.
Please implement a button press, cli command, and/or cronjob that will clean up remanent MS vcredist directories and their files.
Of course, there may need to be consideration for those using Lutris, Play on Linux, etc. where the user fetches specific DX redists for their games.