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.
This commit is contained in:
Pierre Kisters committed 2026-10-01 04:09:13 +02:00
1 parent 667422cb50
commit b0ca57d4bd
1 file changed
+2 -1
+2 -1
View File
@@ -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)