74 |
fi |
fi |
75 |
if [[ ${cfg_fluxbox_menuitem_enabled} = 1 ]] |
if [[ ${cfg_fluxbox_menuitem_enabled} = 1 ]] |
76 |
then |
then |
77 |
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}\"" |
78 |
elif [[ ${cfg_fluxbox_menuitem_enabled} = 0 ]] |
elif [[ ${cfg_fluxbox_menuitem_enabled} = 0 ]] |
79 |
then |
then |
80 |
control_client "${serial}" set fluxbox.menuitem del "${cfg_fluxbox_menuitem_name}" |
control_client "${serial}" set fluxbox.menuitem del "\"${cfg_fluxbox_menuitem_name}\"" |
81 |
# remove from database too |
# remove from database too |
82 |
mysqldo "delete from cfg_fluxbox_menuitem where id='${id}';" |
mysqldo "delete from cfg_fluxbox_menuitem where id='${id}';" |
83 |
else |
else |
154 |
fi |
fi |
155 |
if [[ ${cfg_fluxbox_autostart_enabled} = 1 ]] |
if [[ ${cfg_fluxbox_autostart_enabled} = 1 ]] |
156 |
then |
then |
157 |
control_client "${serial}" set fluxbox.autostart add "${cfg_fluxbox_autostart_name}" "${cfg_fluxbox_autostart_exec}" |
control_client "${serial}" set fluxbox.autostart add "\"${cfg_fluxbox_autostart_name}\"" "\"${cfg_fluxbox_autostart_exec}\"" |
158 |
elif [[ ${cfg_fluxbox_autostart_enabled} = 0 ]] |
elif [[ ${cfg_fluxbox_autostart_enabled} = 0 ]] |
159 |
then |
then |
160 |
control_client "${serial}" set fluxbox.autostart del "${cfg_fluxbox_autostart_name}" |
control_client "${serial}" set fluxbox.autostart del "\"${cfg_fluxbox_autostart_name}\"" |
161 |
# remove from database too |
# remove from database too |
162 |
mysqldo "delete from cfg_fluxbox_autostart where id='${id}';" |
mysqldo "delete from cfg_fluxbox_autostart where id='${id}';" |
163 |
else |
else |
197 |
then |
then |
198 |
decho "No theme retrieved" |
decho "No theme retrieved" |
199 |
else |
else |
200 |
control_client "${serial}" set fluxbox.theme "${value}" |
control_client "${serial}" set fluxbox.theme "\"${value}\"" |
201 |
fi |
fi |
202 |
} |
} |
203 |
|
|