Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox-menuitem.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2281 by niro, Tue Jan 14 14:54:56 2014 UTC revision 2858 by niro, Wed Jul 15 06:38:15 2020 UTC
# Line 32  case "${method}" in Line 32  case "${method}" in
32   clearconfig   clearconfig
33   [[ -n ${comment} ]] && addconfig "# ${comment}"   [[ -n ${comment} ]] && addconfig "# ${comment}"
34   addconfig "[exec] (${name}) {${exec}}"   addconfig "[exec] (${name}) {${exec}}"
35    
36     if [[ -n ${icon} ]]
37     then
38     if [[ -x ${MCORE_LIBDIR}/idesk-generate-icon-info ]]
39     then
40     # generate idesk desktop icon
41     ${MCORE_LIBDIR}/idesk-generate-icon-info --add --name "${name}" --command "${exec}" --icon "${icon}"
42     fi
43     fi
44   ;;   ;;
45    
46   del)   del)
# Line 41  case "${method}" in Line 50  case "${method}" in
50   then   then
51   rm ${MROOT}/${MENUCONFDIR}/"${name}"   rm ${MROOT}/${MENUCONFDIR}/"${name}"
52   fi   fi
53     if [[ -x ${MCORE_LIBDIR}/idesk-generate-icon-info ]]
54     then
55     ${MCORE_LIBDIR}/idesk-generate-icon-info --del --name "${name}"
56     fi
57   else   else
58   # delete all items   # delete all items
59   find ${MROOT}/${MENUCONFDIR} -type f | xargs --no-run-if-empty rm   find ${MROOT}/${MENUCONFDIR} -type f | xargs --no-run-if-empty rm
60     if [[ -x ${MCORE_LIBDIR}/idesk-generate-icon-info ]]
61     then
62     ${MCORE_LIBDIR}/idesk-generate-icon-info --del
63     fi
64   fi   fi
65   ;;   ;;
66    

Legend:
Removed from v.2281  
changed lines
  Added in v.2858