From 6e724f76f052c7ce77d0e322e03b280823cd52d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Wed, 3 Jun 2020 18:27:34 +0200 Subject: [PATCH] fixed qubes.GetAppmenus ignoring some correct .desktop files .desktop files can have spaces around '=' symbols; previously GetAppmenus discarded such files. references QubesOS/qubes-issues#5692 --- 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 6712c51..2422a9b 100755 --- a/qubes-rpc/qubes.GetAppmenus +++ b/qubes-rpc/qubes.GetAppmenus @@ -60,7 +60,7 @@ find "${apps_dirs[@]}" -name '*.desktop' -print0 2>/dev/null | \ xargs -0 awk ' BEGINFILE { if (ERRNO) nextfile; entry="" } /^\[/ { if (tolower($0) != "\[desktop entry\]") nextfile } - /^Exec=/ { entry = entry FILENAME ":Exec=qubes-desktop-run " FILENAME "\n"; next } + /^Exec *=/ { entry = entry FILENAME ":Exec=qubes-desktop-run " FILENAME "\n"; next } /^NoDisplay *= *true$/ { entry=""; nextfile } /=/ { entry = entry FILENAME ":" $0 "\n" } ENDFILE { print entry }