Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from Oct 23, 2023

Conversation

sonic2kk
Copy link
Owner

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
Copy link
Owner Author

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.

@sonic2kk sonic2kk merged commit ae7f75a into master Oct 23, 2023
@sonic2kk sonic2kk linked an issue Oct 23, 2023 that may be closed by this pull request
11 tasks
@sonic2kk sonic2kk deleted the remove-grids branch October 24, 2023 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Overhaul SteamGridDB Integration
1 participant