mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 21:45:39 +00:00
TOOLS: created tool to wipe the miximages
This commit is contained in:
parent
6a35a4fa20
commit
a59f58b675
|
@ -77,4 +77,11 @@
|
|||
<nogamecount>true</nogamecount>
|
||||
<nomultiscrape>true</nomultiscrape>
|
||||
</game>
|
||||
<game>
|
||||
<path>./clean-miximages.sh</path>
|
||||
<name>Clean MixImages</name>
|
||||
<desc>Clean the MixImages in order to beautify the new theme. This is needed if you got scraped data since v0.4.2 or earlier.</desc>
|
||||
<nogamecount>true</nogamecount>
|
||||
<nomultiscrape>true</nomultiscrape>
|
||||
</game>
|
||||
</gameList>
|
||||
|
|
16
tools/clean-miximages.sh
Normal file
16
tools/clean-miximages.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
zenity \
|
||||
--icon-name=net.retrodeck.retrodeck \
|
||||
--question \
|
||||
--no-wrap \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||
--title "RetroDECK" \
|
||||
--ok-label "Yes" \
|
||||
--cancel-label "No" \
|
||||
--text="This tool is will clean the MixImages in order to beautify the theme.\nDo you want to delete them?"
|
||||
|
||||
if [ $? == 0 ] #yes - Internal
|
||||
then
|
||||
find ~/retrodeck/.downloaded_media -name miximages -type d -print0|xargs -0 rm -rfv --
|
||||
fi
|
Loading…
Reference in a new issue