17 |
--exec) shift; exec="$1" ;; |
--exec) shift; exec="$1" ;; |
18 |
--workdir) shift; workdir="$1" ;; |
--workdir) shift; workdir="$1" ;; |
19 |
--icon) shift; icon="$1" ;; |
--icon) shift; icon="$1" ;; |
20 |
|
--comment) shift; comment="$1" ;; |
21 |
esac |
esac |
22 |
shift |
shift |
23 |
done |
done |
30 |
[[ -n ${exec} ]] || die "No exec given" |
[[ -n ${exec} ]] || die "No exec given" |
31 |
CONFIG="${MROOT}/${MENUCONFDIR}/${name}" |
CONFIG="${MROOT}/${MENUCONFDIR}/${name}" |
32 |
clearconfig |
clearconfig |
33 |
|
[[ -n ${comment} ]] && addconfig "# ${comment}" |
34 |
addconfig "[exec] (${name}) {${exec}}" |
addconfig "[exec] (${name}) {${exec}}" |
35 |
;; |
;; |
36 |
|
|