mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 00:00:16 +02:00
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:
1 parent
667422cb50
commit
b0ca57d4bd
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user