Exclude additional paths on Linux

- excludes flatpak's ".removed" directories so only the active flatpak install is targeted by the script
This commit is contained in:
jetfir3
2025-10-05 09:23:54 -04:00
committed by GitHub
parent 1432357f48
commit 2e954c23d8

View File

@@ -280,7 +280,7 @@ linux_search_path() {
local path="${path}"
local timeLimit=$(($(date +%s) + timeout))
while (( $(date +%s) < "${timeLimit}" )); do
installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -not -path "*snapd/snap*" -not -path "*snap/spotify*" -not -path "*snap/bin*" -name "xpui.spa" -size -20M -size +3M -print -quit 2>/dev/null | rev | cut -d/ -f3- | rev)
installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -not -path "*snapd/snap*" -not -path "*snap/spotify*" -not -path "*snap/bin*" -not -path "*flatpak/.removed*" -name "xpui.spa" -size -20M -size +3M -print -quit 2>/dev/null | rev | cut -d/ -f3- | rev)
[[ -n "${installPath}" ]] && return 0
pgrep -x find > /dev/null || break
sleep 1