From 5e08cbc3def68de4537c1426a28e80d71088f8f4 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 6 Oct 2012 22:18:00 +0200 Subject: [PATCH] vm/appmenus: include subdirs with .desktop files --- qubes_rpc/qubes.GetAppmenus | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qubes_rpc/qubes.GetAppmenus b/qubes_rpc/qubes.GetAppmenus index 59027828..71e7b337 100644 --- a/qubes_rpc/qubes.GetAppmenus +++ b/qubes_rpc/qubes.GetAppmenus @@ -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