From 220c84cc6142523e4b81da7533a290f9ab92a610 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 10 Aug 2012 11:06:58 +0200 Subject: [PATCH] vm: ignore additional actions in *.desktop files (#631) --- qubes_rpc/qubes.GetAppmenus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes_rpc/qubes.GetAppmenus b/qubes_rpc/qubes.GetAppmenus index cada68c..5902782 100644 --- a/qubes_rpc/qubes.GetAppmenus +++ b/qubes_rpc/qubes.GetAppmenus @@ -1,2 +1,2 @@ shopt -s nullglob -/bin/grep -H = /usr/share/applications/*.desktop /usr/local/share/applications/*.desktop 2> /dev/null +awk '/^\[/ { if (tolower($0) != "\[desktop entry\]") nextfile } /=/ {print FILENAME ":" $0 }' /usr/share/applications/*.desktop /usr/local/share/applications/*.desktop 2> /dev/null