# exit 1
#fi
-wgtdir=/usr/share/widget_demo
+source /etc/tizen-platform.conf
+
+wgtdir=${TZ_SYS_SHARE}/widget_demo
if [ -z "$(ls $wgtdir/*.wgt 2> /dev/null)" ]; then
echo "$wgtdir doesn't contains any widgets (.wgt)" 1>&2
exit 1
fi
done
-repo=/opt/usr/apps/
-chmod -R a+rw /opt/dbspace/
+repo=${TZ_USER_APP}/
+chmod -R a+rw ${TZ_SYS_DB}/
if [ -x /usr/bin/wrt-launcher ]; then
wrt-launcher --list |
if [[ -f $x ]]; then
res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+')
if [[ -n "$res" ]]; then
- diric=/usr/share/icons/hicolor/$res/apps
+ diric=${TZ_SYS_SHARE}/icons/hicolor/$res/apps
[[ -d $diric ]] || mkdir -p $diric
cp $x $diric/$name.png
fi
fi
done
- desk=/usr/share/applications/$name.desktop
+ desk=${TZ_SYS_RO_DESKTOP_APP}/$name.desktop
cat << EOC > $desk
[Desktop Entry]
Type=Application
##### vconf create table from settings package #########################
# Set vconf values with -g/-u options
-rm -rf /opt/data/setting/set_info
+source /etc/tizen-platform.conf
+
+rm -rf ${TZ_SYS_DATA}/setting/set_info
#### Bluetotth API ####################################################
vconftool set -t string db/menu_widget/regionformat "en_GB.UTF-8"
# PC Specific Environment settings
-mkdir -p /opt/share/packages
-rm -f /opt/dbspace/.wrt*
+mkdir -p ${TZ_SYS_RW_PACKAGES}
+rm -f ${TZ_SYS_DB}/.wrt*
if [ -x /usr/bin/wrt-client ]; then
wrt_commons_create_clean_db.sh
ail_initdb
##### WA : To allow multi-user launch ##########
-chmod -R a+rw /opt/dbspace/
+chmod -R a+rw ${TZ_SYS_DB}/