mirror of
https://github.com/shvedes/photoshop-linux.git
synced 2025-09-09 12:45:06 +00:00
fix: use $HOME/.cache for logging
This commit is contained in:
parent
087a0085b7
commit
ac70db79c7
@ -9,8 +9,10 @@
|
|||||||
# In case the user does not use the XDG Base Directory Specification
|
# In case the user does not use the XDG Base Directory Specification
|
||||||
# https://specifications.freedesktop.org/basedir-spec/latest
|
# https://specifications.freedesktop.org/basedir-spec/latest
|
||||||
XDG_DATA_HOME="$HOME/.local/share"
|
XDG_DATA_HOME="$HOME/.local/share"
|
||||||
XDG_CACHE_HOME="$HOME/.cache"
|
|
||||||
|
|
||||||
|
if [ ! -d "$XDG_CACHE_HOME" ]; then
|
||||||
|
XDG_CACHE_HOME="$HOME/.cache"
|
||||||
|
fi
|
||||||
# LOGGING SYSTEM
|
# LOGGING SYSTEM
|
||||||
# #####################################################################
|
# #####################################################################
|
||||||
#
|
#
|
||||||
@ -90,6 +92,7 @@ ask_user() {
|
|||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Invalid input, try again"
|
echo "Invalid input, try again"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@ -423,7 +426,7 @@ install_launcher() {
|
|||||||
echo "#!/usr/bin/env bash"
|
echo "#!/usr/bin/env bash"
|
||||||
echo ""
|
echo ""
|
||||||
echo "export WINEPREFIX=\"$WINEPREFIX\""
|
echo "export WINEPREFIX=\"$WINEPREFIX\""
|
||||||
echo "LOG_FILE=\"\$XDG_CACHE_HOME/photoshop.log\""
|
echo "LOG_FILE=\"$XDG_CACHE_HOME/photoshop.log\""
|
||||||
echo "DXVK_LOG_PATH=\"\$WINEPREFIX/dxvk_cache\""
|
echo "DXVK_LOG_PATH=\"\$WINEPREFIX/dxvk_cache\""
|
||||||
echo "DXVK_STATE_CACHE_PATH=\"\$WINEPREFIX/dxvk_cache\""
|
echo "DXVK_STATE_CACHE_PATH=\"\$WINEPREFIX/dxvk_cache\""
|
||||||
echo "PHOTOSHOP=\"\$WINEPREFIX/drive_c/Program Files/Adobe Photoshop 2021/photoshop.exe\""
|
echo "PHOTOSHOP=\"\$WINEPREFIX/drive_c/Program Files/Adobe Photoshop 2021/photoshop.exe\""
|
||||||
@ -477,6 +480,7 @@ while getopts "a:i:h" flag; do
|
|||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -$OPTARG Use -h for help."
|
echo "Invalid option: -$OPTARG Use -h for help."
|
||||||
exit 1
|
exit 1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user