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:
parent
c6a0bdff41
commit
78017ccf67
@ -59,12 +59,12 @@ install_desktop_entry() {
|
|||||||
|
|
||||||
while [[ $# -gt 0 ]] ; do
|
while [[ $# -gt 0 ]] ; do
|
||||||
case $1 in
|
case $1 in
|
||||||
Name=*) Name=${1##*=} ; shift ;;
|
Name=*) Name=${1#*=} ; shift ;;
|
||||||
Comment=*) Comment=${1##*=} ; shift ;;
|
Comment=*) Comment=${1#*=} ; shift ;;
|
||||||
Exec=*) Exec=${1##*=} ; shift ;;
|
Exec=*) Exec=${1#*=} ; shift ;;
|
||||||
TryExec=*) TryExec=${1##*=} ; shift ;;
|
TryExec=*) TryExec=${1#*=} ; shift ;;
|
||||||
Icon=*) Icon=${1##*=} ; shift ;;
|
Icon=*) Icon=${1#*=} ; shift ;;
|
||||||
Categories=*) Categories=${1##*=} ; shift ;;
|
Categories=*) Categories=${1#*=} ; shift ;;
|
||||||
*=*)
|
*=*)
|
||||||
if has ${1%%=*} ${OtherValidFields[@]} ; then
|
if has ${1%%=*} ${OtherValidFields[@]} ; then
|
||||||
AddFields+="\n${1}"
|
AddFields+="\n${1}"
|
||||||
|
Loading…
Reference in New Issue
Block a user