mirror of
https://github.com/JackHack96/EasyEffects-Presets.git
synced 2024-12-27 06:41:59 +00:00
Updated script with flatpak checking
This commit is contained in:
parent
a933da92e0
commit
61060cd3f9
1 changed files with 6 additions and 4 deletions
10
install.sh
10
install.sh
|
@ -4,13 +4,15 @@
|
|||
GIT_REPOSITORY="https://raw.githubusercontent.com/JackHack96/PulseEffects-Presets/master"
|
||||
|
||||
check_installation() {
|
||||
if flatpak list | grep -q "com.github.wwmm.easyeffects"; then
|
||||
PRESETS_DIRECTORY="$HOME/.var/app/com.github.wwmm.easyeffects/config/easyeffects"
|
||||
elif [ -d "$HOME/.config/easyeffects" ]; then
|
||||
if command -v flatpak &> /dev/null; then
|
||||
if flatpak list | grep -q "com.github.wwmm.easyeffects"; then
|
||||
PRESETS_DIRECTORY="$HOME/.var/app/com.github.wwmm.easyeffects/config/easyeffects"
|
||||
fi
|
||||
elif [ -d "$HOME/.config/easyeffects" ]; then
|
||||
PRESETS_DIRECTORY="$HOME/.config/easyeffects"
|
||||
else
|
||||
echo "Error! Couldn't find EasyEffects presets directory!"
|
||||
exit 1
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue