2 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 wrt_create_clean_db.sh
19 rm -rf /opt/apps/widget/system/*
21 # This directories contains test widgets and test keys. It shouldn't be removed.
22 #rm -rf /opt/apps/widget/user/*
23 #rm -rf /opt/apps/widget/data/*
25 #Removing of widget desktop icons
26 WIDGET_EXEC_PATH=/opt/apps/widget/exec
27 WIDGET_DESKTOP_PATH=/opt/share/install-info/application
28 WIDGET_ICON_PATH=/opt/share/icons/default/small
29 WIDGET_EXECS="${WIDGET_EXEC_PATH}/*";
31 for file in $WIDGET_EXECS; do
32 widget_id=${file#${WIDGET_EXEC_PATH}/};
34 widget_desktop_file="${WIDGET_DESKTOP_PATH}/org.tizen.${widget_id}.desktop";
35 if [ -f ${widget_desktop_file} ]; then
36 echo "rm -f $widget_desktop_file";
37 rm -f $widget_desktop_file;
40 widget_icon_file="${WIDGET_ICON_PATH}/${widget_id}.*"
41 if [ -f ${widget_icon_file} ]; then
42 echo "rm -f $widget_icon_file";
43 rm -f $widget_icon_file;
47 rm -rf /opt/apps/widget/exec/*
48 touch /opt/apps/widget/plugin-installation-required