From 2e954c23d8d184d8797b2e75fcfb625b780fc4da Mon Sep 17 00:00:00 2001 From: jetfir3 <95306468+jetfir3@users.noreply.github.com> Date: Sun, 5 Oct 2025 09:23:54 -0400 Subject: [PATCH] Exclude additional paths on Linux - excludes flatpak's ".removed" directories so only the active flatpak install is targeted by the script --- spotx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotx.sh b/spotx.sh index 5559c23..e1413bd 100644 --- a/spotx.sh +++ b/spotx.sh @@ -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