Magellan Linux

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

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

revision 2535 by niro, Wed Sep 16 08:19:33 2015 UTC revision 2536 by niro, Wed Sep 16 08:20:38 2015 UTC
# Line 17  set_fluxbox_menuitem() Line 17  set_fluxbox_menuitem()
17   local id   local id
18    
19   case "${action}" in   case "${action}" in
20   add) import_resource cfg_fluxbox_menuitem "${serial}" name "${name}" exec "${exec}" workdir "${workdir}" icon "${icon}" ;;   add) id=$(mysqldo "select id from cfg_fluxbox_menuitem where serial='${serial}' and name='${name}';")
21     if [[ -n ${id} ]]
22   id=$(mysqldo "select id from cfg_fluxbox_menuitem where serial='${serial}' and name='${name}';")   then
23   if [[ -n ${id} ]]   mysqldo "update cfg_fluxbox_menuitem set name='${name}', exec='${exec}', workdir='${workdir}', icon='${icon}' where id=${id};"
24   then   else
25   mysqldo "update cfg_fluxbox_menuitem set name='${name}', exec='${exec}', workdir='${workdir}', icon='${icon}' where id=${id};"   mysqldo "insert into cfg_fluxbox_menuitem(serial,name,exec,workdir,icon) values('${serial}','${name}','${exec}','${workdir}','${icon}');"
26   else   fi
27   mysqldo "insert into cfg_fluxbox_menuitem(serial,name,exec,workdir,icon) values('${serial}','${name}','${exec}','${workdir}','${icon}');"   ;;
  fi  
   
28   del)   del)
29   if [[ -n ${name} ]]   if [[ -n ${name} ]]
30   then   then

Legend:
Removed from v.2535  
changed lines
  Added in v.2536