sonic2kk / steamtinkerlaunch

Linux wrapper tool for use with the Steam client for custom launch options and 3rd party programs
GNU General Public License v3.0
2.1k stars 70 forks source link

Commandline: Add command to remove per-game grids and all game grids #957

Closed sonic2kk closed 10 months ago

sonic2kk commented 10 months ago

A small piece for #933.

This PR adds a command which can remove game grids, either for a specific AppID, or for all game grids by removing the grids folder (if it exists). This is a handy command for clearing out artwork for Non-Steam Games, or just in general if you download artwork you're unhappy with. Or, if your grids folder gets too big, you can clear it out.

I tested this and it works and is pretty safe. I did consider adding an extra guard around all the grids, such as a --yesimsure flag, or backing up beforehand, but I figured I'll go with trusting the user.

sonic2kk commented 10 months ago

Updated the all part of the command to re-create the grid folder, this fixes a minor warning we can end up with when fetching the show pic. It's harmless and there are some others like this we can end up with but figured one less is always good.

Shellcheck is green on this so we should be ready to merge.