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 2534 by niro, Wed Sep 16 07:51:43 2015 UTC revision 2535 by niro, Wed Sep 16 08:19:33 2015 UTC
# Line 14  set_fluxbox_menuitem() Line 14  set_fluxbox_menuitem()
14   local exec="${CLASS_ARGV[3]}"   local exec="${CLASS_ARGV[3]}"
15   local workdir="${CLASS_ARGV[4]}"   local workdir="${CLASS_ARGV[4]}"
16   local icon="${CLASS_ARGV[5]}"   local icon="${CLASS_ARGV[5]}"
17     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) import_resource cfg_fluxbox_menuitem "${serial}" name "${name}" exec "${exec}" workdir "${workdir}" icon "${icon}" ;;
21    
22     id=$(mysqldo "select id from cfg_fluxbox_menuitem where serial='${serial}' and name='${name}';")
23     if [[ -n ${id} ]]
24     then
25     mysqldo "update cfg_fluxbox_menuitem set name='${name}', exec='${exec}', workdir='${workdir}', icon='${icon}' where id=${id};"
26     else
27     mysqldo "insert into cfg_fluxbox_menuitem(serial,name,exec,workdir,icon) values('${serial}','${name}','${exec}','${workdir}','${icon}');"
28     fi
29    
30   del)   del)
31   if [[ -n ${name} ]]   if [[ -n ${name} ]]
32   then   then

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