vm/appmenus: include subdirs with .desktop files

This commit is contained in:
Marek Marczykowski 2012-10-06 22:18:00 +02:00
parent c898eae21c
commit 7f87a29230

View File

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