Merge remote-tracking branch 'origin/pr/217'

* origin/pr/217:
  signed
  qubes.GetAppmenus: skip unreadable .desktop files
This commit is contained in:
Marek Marczykowski-Górecki 2020-02-17 04:25:22 +01:00
commit 59dfcd7867
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -58,7 +58,7 @@ fi
find "${apps_dirs[@]}" -name '*.desktop' -print0 2>/dev/null | \
xargs -0 awk '
BEGINFILE { entry="" }
BEGINFILE { if (ERRNO) nextfile; entry="" }
/^\[/ { if (tolower($0) != "\[desktop entry\]") nextfile }
/^Exec=/ { entry = entry FILENAME ":Exec=qubes-desktop-run " FILENAME "\n"; next }
/^NoDisplay *= *true$/ { entry=""; nextfile }