2015-05-11 22:06:03 +02:00
|
|
|
find /usr/share/applications/ /usr/local/share/applications/ -name '*.desktop' 2>/dev/null | \
|
2015-11-03 00:48:26 +01:00
|
|
|
xargs awk '
|
|
|
|
BEGINFILE { entry="" }
|
|
|
|
/^\[/ { if (tolower($0) != "\[desktop entry\]") nextfile }
|
|
|
|
/^Exec=/ { entry = entry FILENAME ":Exec=qubes-desktop-run " FILENAME "\n"; next }
|
|
|
|
/^NoDisplay *= *true$/ { entry=""; nextfile }
|
|
|
|
/=/ { entry = entry FILENAME ":" $0 "\n" }
|
|
|
|
ENDFILE { print entry }
|
|
|
|
' 2> /dev/null
|