64 |
then |
then |
65 |
control_client "${serial}" set fluxbox.menuitem add "${cfg_fluxbox_menuitem_name}" "${cfg_fluxbox_menuitem_exec}" "${cfg_fluxbox_menuitem_workdir}" "${cfg_fluxbox_menuitem_icon}" |
control_client "${serial}" set fluxbox.menuitem add "${cfg_fluxbox_menuitem_name}" "${cfg_fluxbox_menuitem_exec}" "${cfg_fluxbox_menuitem_workdir}" "${cfg_fluxbox_menuitem_icon}" |
66 |
elif [[ ${cfg_fluxbox_menuitem_enabled} = 0 ]] |
elif [[ ${cfg_fluxbox_menuitem_enabled} = 0 ]] |
67 |
|
then |
68 |
control_client "${serial}" set fluxbox.menuitem del "${cfg_fluxbox_menuitem_name}" |
control_client "${serial}" set fluxbox.menuitem del "${cfg_fluxbox_menuitem_name}" |
69 |
# remove from database too |
# remove from database too |
70 |
mysqldo "delete from cfg_fluxbox_menuitem where id='${id}';" |
mysqldo "delete from cfg_fluxbox_menuitem where id='${id}';" |