desktop-utils.exlib: fix argument handling

Arguments like "Exec=${PN} Game.Mod=cnc"
were previously incorrectly handles. This
fixes behavior.
This commit is contained in:
Julian Ospald 2016-02-29 18:39:26 +01:00
parent c6a0bdff41
commit 78017ccf67
1 changed files with 6 additions and 6 deletions

View File

@ -59,12 +59,12 @@ install_desktop_entry() {
while [[ $# -gt 0 ]] ; do
case $1 in
Name=*) Name=${1##*=} ; shift ;;
Comment=*) Comment=${1##*=} ; shift ;;
Exec=*) Exec=${1##*=} ; shift ;;
TryExec=*) TryExec=${1##*=} ; shift ;;
Icon=*) Icon=${1##*=} ; shift ;;
Categories=*) Categories=${1##*=} ; shift ;;
Name=*) Name=${1#*=} ; shift ;;
Comment=*) Comment=${1#*=} ; shift ;;
Exec=*) Exec=${1#*=} ; shift ;;
TryExec=*) TryExec=${1#*=} ; shift ;;
Icon=*) Icon=${1#*=} ; shift ;;
Categories=*) Categories=${1#*=} ; shift ;;
*=*)
if has ${1%%=*} ${OtherValidFields[@]} ; then
AddFields+="\n${1}"