From 6be747cf6ad103d388599b16b82eb29592e43b0a Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 23 Jan 2013 15:59:08 +0100 Subject: [PATCH] appmenus: preserve file header --- convert_app2template.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert_app2template.sh b/convert_app2template.sh index dafdd38..9511fce 100755 --- a/convert_app2template.sh +++ b/convert_app2template.sh @@ -8,7 +8,8 @@ if ! grep -q ^Name $SRC ; then exit 0 fi -sed -n -e "s/^\(Name.*\)=\(.*\)/\1=%VMNAME%: \2/p" \ +sed -n -e "/^\[Desktop Entry\]$/p" \ + -e "s/^\(Name.*\)=\(.*\)/\1=%VMNAME%: \2/p" \ -e "s/^\(GenericName.*\)=\(.*\)/\1=%VMNAME%: \2/p" \ -e "s/^Exec=\(.*\)/Exec=qvm-run -q --tray -a %VMNAME% \'\1\'/p" \ -e "/^Comment.*=/p" \