From: Lukasz Stanislawski Date: Thu, 31 Mar 2016 10:22:38 +0000 (+0200) Subject: do not alternate res path X-Git-Tag: submit/tizen_mobile/20160404.134347~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a6b5f7f1ed7619f357656a9380fee2efadb51d3;p=apps%2Fcore%2Fpreloaded%2Ftaskmanager.git do not alternate res path app_get_resource_path function returns correct resource path in case of global and per user installation. Change-Id: I03dfac82342675adf3616e9cd8bfef34b3de640f --- diff --git a/CMake/CMakeLists.txt b/CMake/CMakeLists.txt index 563efbe..a0d81c8 100644 --- a/CMake/CMakeLists.txt +++ b/CMake/CMakeLists.txt @@ -32,8 +32,6 @@ pkg_check_modules(MENU_PKGS REQUIRED context ) -ADD_DEFINITIONS("-DINSTALL_RESDIR=\"${INSTALL_RESDIR}\"") - FOREACH (flag ${MENU_PKGS_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) diff --git a/src/util.c b/src/util.c index 0c59acb..29fcd0c 100644 --- a/src/util.c +++ b/src/util.c @@ -118,11 +118,7 @@ const char *util_get_file_path(app_subdir dir, const char *relative) prefix = app_get_cache_path(); break; case APP_DIR_RESOURCE: -#ifdef INSTALL_RESDIR - prefix = strdup(INSTALL_RESDIR); -#else prefix = app_get_resource_path(); -#endif break; case APP_DIR_SHARED_DATA: prefix = app_get_shared_data_path();