#!/bin/bash -ex

SHORTCUT_DIR_PATH=${HOME}/.local/share
APPLICATION_DIR_PATH=${SHORTCUT_DIR_PATH}/applications

##if not exist 'applications' directory
if [ ! -e ${APPLICATION_DIR_PATH} ]; then
	mkdir -p ${APPLICATION_DIR_PATH}
fi

DESKTOP_UNINSTALLER_FILE_PATH=${APPLICATION_DIR_PATH}/tizen-studio-uninstaller.desktop
DESKTOP_UNINSTALLER_EXECUTE_FILE_PATH=${INSTALLED_PATH}/package-manager/package-manager-uninstaller.bin
DESKTOP_UNINSTALLER_NAME="Tizen Studio Uninstaller"
DESKTOP_UNINSTALLER_COMMENT="Tizen Studio Uninstaller"
DESKTOP_UNINSTALLER_ICON_FILE_PATH=${INSTALLED_PATH}/package-manager/tizen-studio-uninstaller.png
##create 'SDK uninstaller' shortcut
${MAKESHORTCUT_PATH} \
-f "${DESKTOP_UNINSTALLER_FILE_PATH}" \
-e "${DESKTOP_UNINSTALLER_EXECUTE_FILE_PATH}" \
-i "${DESKTOP_UNINSTALLER_ICON_FILE_PATH}" \
-n "${DESKTOP_UNINSTALLER_NAME}" \
-c "${DESKTOP_UNINSTALLER_COMMENT}"

