From e40c3ce569aaab9616b88a0c51ae5bd5edc68b22 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 1 Mar 2022 17:56:46 -0500 Subject: [PATCH] Fix for those distros who, for whatever reason, decide to store ~/.cache in RAM... --- audiogame-manager.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 8dcb63e..74c1f36 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -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() {