Fix for those distros who, for whatever reason, decide to store ~/.cache in RAM...

This commit is contained in:
Storm Dragon 2022-03-01 17:56:46 -05:00
parent dabfac59b0
commit e40c3ce569

View File

@ -501,18 +501,20 @@ winetricks() {
echo "1" > "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage"
fi
# Download or update agm's copy of winetricks
if [[ ! -e "${cache}/winetricks" ]]; then
winetricksPath="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager"
if [[ ! -e "${winetricksPath}/winetricks" ]]; then
checkWinetricksUpdate="true"
download "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks"
chmod 700 "${cache}/winetricks"
mv "${cache}/winetricks" "${winetricksPath}"
chmod 755 "${winetricksPath}/winetricks"
else
if [[ "$checkWinetricksUpdate" != "true" ]]; then
checkWinetricksUpdate="true"
${cache}/winetricks --self-update
${winetricksPath}/winetricks --self-update
fi
fi
# Run the requested winetricks parameters
${cache}/winetricks "$@"
${winetricksPath}/winetricks "$@"
}
install_rhvoice() {