summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2016-03-24 17:04:01 +0100
committerLukasz Stanislawski <l.stanislaws@samsung.com>2016-03-29 10:49:34 -0700
commit43129501c2772e36ea0b2902aee14f84f448a828 (patch)
tree7ed6de9f8fd117e096c2d6eb66bc9e08abe848fd
parente0a84ced6edd44b484aa8a80bf3b5be2d2be930f (diff)
downloadshare-panel-43129501c2772e36ea0b2902aee14f84f448a828.tar.gz
share-panel-43129501c2772e36ea0b2902aee14f84f448a828.tar.bz2
share-panel-43129501c2772e36ea0b2902aee14f84f448a828.zip
No need to alternate resource paths
Since images starting ~22/03/2016 app_get_resource_path correctly distinguish global and per user installations. Change-Id: Ib2530043ba714a2211f5940cd2a33c13b2081ffc
-rw-r--r--CMake/CMakeLists.txt2
-rw-r--r--src/utils.c13
2 files changed, 0 insertions, 15 deletions
diff --git a/CMake/CMakeLists.txt b/CMake/CMakeLists.txt
index 4c73bc7..d1487e9 100644
--- a/CMake/CMakeLists.txt
+++ b/CMake/CMakeLists.txt
@@ -32,8 +32,6 @@ pkg_check_modules(MENU_PKGS REQUIRED
efl-extension
)
-ADD_DEFINITIONS("-DINSTALL_RESDIR=\"${INSTALL_RESDIR}\"")
-
FOREACH (flag ${MENU_PKGS_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
diff --git a/src/utils.c b/src/utils.c
index 48cae7e..e1a810a 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -24,18 +24,6 @@
char *utils_get_res_file_path(char *sub_path)
{
-/* Fix for support for global and user installation
- * In case of global installation resoureces should be fetched from
- * predefined directory
- *
- * In case of multi-user installation resources shoudl be fetched using
- * app_get_resource_path API.
- */
-#ifdef INSTALL_RESDIR
- char buf[1024];
- snprintf(buf, sizeof(buf), "%s/%s", INSTALL_RESDIR, sub_path);
- return strdup(buf);
-#else
char *res_path = app_get_resource_path();
if(!res_path)
return NULL;
@@ -53,5 +41,4 @@ char *utils_get_res_file_path(char *sub_path)
free(res_path);
return absolute_path;
-#endif
}