SET(MANIFESTDIR "/usr/share/packages")
# manifest
+CONFIGURE_FILE(${PACKAGE_NAME}.xml.in ${CMAKE_BINARY_DIR}/${PACKAGE_NAME}.xml)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/${PACKAGE_NAME}.xml DESTINATION ${MANIFESTDIR})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/main_operation.launch DESTINATION /usr/apps/org.tizen.menu-screen/res/data)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.tizen.menu-screen.xml DESTINATION /usr/share/packages)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/icons/${PACKAGE_NAME}.png DESTINATION /usr/apps/org.tizen.menu-screen/shared/res)
ADD_SUBDIRECTORY(edje)
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="@PACKAGE_NAME@" version="1.2.5" install-location="internal-only" api-version="2.3.1">
- <label>Simple Menu-screen</label>
- <author email="jinny.yoon@samsung.com" href="www.samsung.com">Jin Yoon</author>
- <author email="junkyu.han@samsung.com" href="www.samsung.com">Junkyu Han</author>
- <author email="yjoo93.park@samsung.com" href="www.samsung.com">Youngjoo Park</author>
- <description>Simple Menu-screen Application</description>
- <ui-application appid="@PACKAGE_NAME@" exec="@EXEC_PREFIX@/@PROJECT_NAME@" nodisplay="true" multiple="false" type="capp" taskmanage="false">
- <label>Simple Menu-screen</label>
- <category name="http://tizen.org/category/homeapp"/>
- <icon>/usr/share/icons/default/small/org.tizen.menu-screen.png</icon>
- </ui-application>
- <privileges>
- <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
- </privileges>
-</manifest>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns="http://tizen.org/ns/packages" package="@PACKAGE_NAME@" version="1.2.5" install-location="internal-only" api-version="2.3.1">
+ <label>Simple Menu-screen</label>
+ <author email="jinny.yoon@samsung.com" href="www.samsung.com">Jin Yoon</author>
+ <author email="junkyu.han@samsung.com" href="www.samsung.com">Junkyu Han</author>
+ <author email="yjoo93.park@samsung.com" href="www.samsung.com">Youngjoo Park</author>
+ <description>Simple Menu-screen Application</description>
+ <ui-application appid="@PACKAGE_NAME@" exec="@EXEC_PREFIX@/@PROJECT_NAME@" nodisplay="true" multiple="false" type="capp" taskmanage="false">
+ <label>Simple Menu-screen</label>
+ <category name="http://tizen.org/category/homeapp"/>
+ <icon>/usr/share/icons/default/small/org.tizen.menu-screen.png</icon>
+ </ui-application>
+ <privileges>
+ <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
+ <privilege>http://tizen.org/privilege/packagemanager.admin</privilege>
+ </privileges>
+</manifest>
if (title) {
elm_win_title_set(menu_screen_info.win, title);
}
+ _D("elm_scale: %f", elm_app_base_scale_get());
+ _D("config_scale: %f", elm_config_scale_get());
+
elm_win_borderless_set(menu_screen_info.win, EINA_TRUE);
elm_win_screen_size_get(menu_screen_info.win, NULL, NULL, &menu_screen_info.root_width, &menu_screen_info.root_height);
+ _D("menu-screen window size:: width: %d, height: %d", menu_screen_info.root_width, menu_screen_info.root_height);
#if 0
ecore_x_icccm_name_class_set(elm_win_xwindow_get(menu_screen_info.win), "MENU_SCREEN", "MENU_SCREEN");
}
_D("Uninstall a package[%s] from an app[%s]", pkgid, appid);
- if (pkgmgr_client_uninstall(req_pc, NULL, pkgid, PM_QUIET, NULL, NULL) < 0) {
+ if (pkgmgr_client_usr_uninstall(req_pc, NULL, pkgid, PM_QUIET, NULL, NULL, getuid()) < 0) {
_E("cannot uninstall %s.", item_get_package(item));
ret = MENU_SCREEN_ERROR_FAIL;
}