steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

After remove game, proton prefix exist

Open bladefox1337 opened this issue 5 years ago • 6 comments
trafficstars

Your system information

  • Steam client version (build number or date): Oct 15 2020, at 19:03:06
  • Distribution (e.g. Ubuntu): Arch
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

After remove windows game from library, proton prefix remains in ~/.local/share/Steam/steamapps/compatdata/%gameid%

Steps for reproducing this issue:

  1. Install & play game via proton (example Brawlhalla[291550])
  2. Remove game
  3. Check %gameid% for your game, and open ~/.local/share/Steam/steamapps/compatdata directory, and %gameid% directory is exist

bladefox1337 avatar Oct 18 '20 13:10 bladefox1337

Possibly intentional to mitigate https://github.com/ValveSoftware/Proton/issues/428.

kisak-valve avatar Oct 18 '20 13:10 kisak-valve

[Feature Request] Feature to clear proton compatdata for uninstalled apps

Issue transferred from https://github.com/ValveSoftware/steam-for-linux/issues/7815. @xDShot posted on 2021-05-26T09:49:15:

Was cleaning disk space when I noticed that I had leftover compat datas from removed games in steam/steamapps/compatdata. Medium size of these is around 500Mb, some of them even took 20Gbs, and there are plenty of them.

Would like to see an option for Steam client to purge chosen data of willing app, including for removed apps, instead of manually removing them. Optional as they might contain save data for games without Steam Cloud or have some prefix workaround applied to make them work.

kisak-valve avatar May 26 '21 11:05 kisak-valve

The other issue with this is that for non-steam games. When a non-steam game is removed, the proton prefix still exists, and there is no longer a breadcrumb that can be followed to figure out what the proton prefix belonged to.

I'm running into this issue right now on my Steam Deck. I have 5 prefix folders that I believe are orphaned, but I don't know if they are safe to delete.

IBNobody avatar Jun 13 '22 18:06 IBNobody

I'm kind of embarrassed to post this but I made a BASH script quite some time ago for my own personal usage. It was originally designed to solve a slightly different problem, but I've been adding to it over time and it has come to address this exact issue.

https://github.com/techmouse/steam-compatdata-symlinker-thing

Let me know if you get some use out of it.

techmouse avatar Jun 14 '22 02:06 techmouse

I'm kind of embarrassed to post this but I made a BASH script quite some time ago for my own personal usage. It was originally designed to solve a slightly different problem, but I've been adding to it over time and it has come to address this exact issue.

https://github.com/techmouse/steam-compatdata-symlinker-thing

Let me know if you get some use out of it.

It's very good, but it has some issues on the Steam Deck. I'll file an issue against it.

IBNobody avatar Jun 14 '22 03:06 IBNobody

[Feature Request] While uninstalling a SteamPlay/Proton game, add a checkbox asking "Do you want to delete all user data?". If the user does not check this box, do not delete the prefix. If checked, delete the prefix.

MagicD3VIL avatar Sep 14 '22 21:09 MagicD3VIL

Would be nice to have this added as a native option to Steam, though for the time being I made myself a relatively simple Bash script here that I've been using to clear away prefixes for uninstalled games. Maybe others here might find some use in it as well.

62832 avatar Apr 16 '23 14:04 62832

Has this been fixed now in the new Beta client update? Looks like unused prefixes no longer actually remain when uninstalling a game.

62832 avatar Apr 19 '23 20:04 62832

Erasing player saves when uninstalling games ? That takes us back to DOS gaming era ! Remember, Valve : not all games have cloud saves (and even with cloud saves, data loss can happen) Seriously : it's never been recommended (euphemism) to erase user data without consent when uninstalling a program.

@MagicD3VIL is so right here : https://github.com/ValveSoftware/steam-for-linux/issues/7418#issuecomment-1247317571 it must be a choice with a big warning. And it must warn about the saves. => "Do you want to delete all user data (including local saves) ?"

Saroumane avatar Jun 17 '23 23:06 Saroumane

Today I've lost my game progress (about two weeks) when I reinstalled the game (otherwise it wouldn't open) because Steam also deleted my local saves and didn't create any Cloud copies. So yeah, I think there should be choice to save local data rather than deleting it permanently. At least send it to trash.

ASHGOLDOFFICIAL avatar May 19 '24 14:05 ASHGOLDOFFICIAL

At least send it to trash.

I completely agree with this sentiment. Always use gio trash instead of rm.

techmouse avatar May 19 '24 18:05 techmouse