From b0ca57d4bd82a1de47876bdea7b76f7c9ed1f232 Mon Sep 17 00:00:00 2001 From: Pierre Kisters <1524059+lhns@users.noreply.github.com> Date: Thu, 1 Oct 2026 04:06:26 +0200 Subject: [PATCH] VR "+" menu icon fallbacks: hints no longer stop at an unreadable entry A launcher whose Flatpak is not installed leaves a dangling link in ~/.local/share/applications; awk failed on it and set -e ended the hints there. --- modules/launcher-menu/icon-fallbacks.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/launcher-menu/icon-fallbacks.sh b/modules/launcher-menu/icon-fallbacks.sh index b4fc391..a4331c8 100644 --- a/modules/launcher-menu/icon-fallbacks.sh +++ b/modules/launcher-menu/icon-fallbacks.sh @@ -75,7 +75,8 @@ for d in "${data_dirs[@]}"; do id=${f#"$d/applications/"}; id=${id//\//-} [[ -z ${seen[$id]:-} ]] || continue seen[$id]=1 - icon=$(entry_icon "$f") + # Unreadable, e.g. a launcher's link while its app isn't installed. + icon=$(entry_icon "$f" 2>/dev/null) || continue [[ -n $icon && -z ${configured[$icon]:-} && -z ${missing[$icon]:-} ]] || continue if ! resolves "$icon" >/dev/null && in_breeze "$icon"; then missing[$icon]=${id%.desktop}; fi done < <(find -L "$d/applications" -name '*.desktop' -print0 2>/dev/null)