Merge remote-tracking branch 'qubesos/pr/8'

* qubesos/pr/8:
  Proposed solution for issue #1657

Fixes QubesOS/qubes-issues#1657
This commit is contained in:
Marek Marczykowski-Górecki 2016-01-20 02:37:17 +01:00
commit 858ee225e5
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1,5 +1,5 @@
find /usr/share/applications/ /usr/local/share/applications/ -name '*.desktop' 2>/dev/null | \
xargs awk '
find /usr/share/applications/ /usr/local/share/applications/ -name '*.desktop' -print0 2>/dev/null | \
xargs -0 awk '
BEGINFILE { entry="" }
/^\[/ { if (tolower($0) != "\[desktop entry\]") nextfile }
/^Exec=/ { entry = entry FILENAME ":Exec=qubes-desktop-run " FILENAME "\n"; next }