Update the audiogame cache to be stored in the proper place according to the XDG spec. This was easier than I was expecting, so watch for bugs.
This commit is contained in:
parent
0640397000
commit
dabfac59b0
@ -814,10 +814,16 @@ if [[ -z "$DISPLAY" ]]; then
|
||||
export DISPLAY=":0"
|
||||
fi
|
||||
# Settings file
|
||||
cache="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/cache"
|
||||
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
||||
configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf"
|
||||
mkdir -p "${cache}"
|
||||
mkdir -p "${configFile%/*}"
|
||||
# Update the cache for older versions of audiogame-manager
|
||||
if [[ -d "${configFile%/*}/cache" ]]; then
|
||||
{ mv -v "${configFile%/*}/cache/"* "${cache}"
|
||||
rmdir -v "${configFile%/*}/cache/"; } | dialog \
|
||||
--backtitle "Audiogame Manager" --progressbox "Updating cache, please wait..." -1 -1
|
||||
fi
|
||||
checkWinetricksUpdate="false"
|
||||
# Turn off debug messages
|
||||
export WINEDEBUG="-all"
|
||||
|
@ -37,7 +37,7 @@
|
||||
# Works which are defined in the CPAL as a work which combines Covered Code
|
||||
# or portions thereof with code not governed by the terms of the CPAL.
|
||||
|
||||
cache="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/cache"
|
||||
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
||||
configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf"
|
||||
url="http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta77.zip"
|
||||
(rm -v "${cache}/Crazy-Party-beta76.zip"
|
||||
|
@ -37,7 +37,7 @@
|
||||
# Works which are defined in the CPAL as a work which combines Covered Code
|
||||
# or portions thereof with code not governed by the terms of the CPAL.
|
||||
|
||||
cache="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/cache"
|
||||
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
||||
updateURL="https://www.kaldobsky.com/audiogames"
|
||||
updateFiles=("Swamp.zip")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user