#!/bin/bash -x
## User Define for desktop menu
desktopfile="${HOME}/.local/share/applications/tizen-studio-devicemanager.desktop"
iconfile=tizen_device_manager.ico
device_path=tools/device-manager
exefile=device-manager
comment="Tizen Device Manager"
name="Device Manager"

## Do not modify the followings (Make desktop menu)
TIZEN_SDK_INSTALL_PATH="${INSTALLED_PATH}"
exepath="$TIZEN_SDK_INSTALL_PATH/${device_path}/$exefile"
device_resources_path="${TIZEN_SDK_INSTALL_PATH}/${device_path}/resources"
device_icons_path=${device_resources_path}/icons
categoryfile="${MENU_DIRECTORY_PATH}"

## Register start menu
if [ -e "${MAKESHORTCUT_PATH}" ]
then
    "${MAKESHORTCUT_PATH}" -f "${desktopfile}" -e "${exepath}" -i "${device_icons_path}/${iconfile}" -n "${name}" -c "${comment}"
fi

exit 0
