Compare commits

...

3 Commits

Author SHA1 Message Date
shvedes
ec4de2a11e Added (neo)vim options 2024-11-09 23:42:40 +01:00
shved.
f57e314db7
Merge pull request #5 from MaximalCats/main
fix: use $HOME/.cache for logging
2024-11-09 23:41:26 +01:00
hexlocation
ac70db79c7 fix: use $HOME/.cache for logging 2024-11-09 21:04:48 +01:00

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# vim: set tabstop=2 shiftwidth=2 expandtab:
# This work and script was adapted by the work of user LinSoftWin. If it wasn't for him - it wouldn't have happened. # This work and script was adapted by the work of user LinSoftWin. If it wasn't for him - it wouldn't have happened.
# This script downloads a PIRATE version of Photoshop, because it is not possible to run the actual version from Adobe Creative Cloud. # This script downloads a PIRATE version of Photoshop, because it is not possible to run the actual version from Adobe Creative Cloud.
# Use it at your own risk. The license applies only to the files in this repository. # Use it at your own risk. The license applies only to the files in this repository.
@ -9,8 +11,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 +94,7 @@ ask_user() {
*) *)
echo "Invalid input, try again" echo "Invalid input, try again"
;;
esac esac
done done
} }
@ -423,7 +428,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 +482,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