appmenus: hide message about missing /usr/local/share/applications

Debian template doesn't have this directory by default.
This commit is contained in:
Marek Marczykowski-Górecki 2015-05-11 22:06:03 +02:00
parent c037afc52c
commit 6c288d0ac2

View File

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