summaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
authorSabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>2014-02-10 14:26:55 +0100
committerSabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>2014-02-17 14:11:16 +0100
commitf0e0a08562a88cac22640384e1f8cadbec9f4ce1 (patch)
tree73fa28ff19b417191ab5050b438a03992537d8c6 /src/module.c
parentdb3a1d59af5970efaf7f2578d641484965e831b7 (diff)
downloadui-gadget-1-f0e0a08562a88cac22640384e1f8cadbec9f4ce1.tar.gz
ui-gadget-1-f0e0a08562a88cac22640384e1f8cadbec9f4ce1.tar.bz2
ui-gadget-1-f0e0a08562a88cac22640384e1f8cadbec9f4ce1.zip
bug-tizen: PTREL-662 Change-Id: I66ab7ff37a89703576ea90885300364cc63f8bf6 Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/module.c b/src/module.c
index bd2fedc..8307325 100644
--- a/src/module.c
+++ b/src/module.c
@@ -33,6 +33,8 @@
#include "ug-module.h"
#include "ug-dbg.h"
+#include <tzplatform_config.h>
+
#define UG_MODULE_INIT_SYM "UG_MODULE_INIT"
#define UG_MODULE_EXIT_SYM "UG_MODULE_EXIT"
@@ -66,10 +68,10 @@ struct ug_module *ug_module_load(const char *name)
do {
if (pkg_name) {
- snprintf(ug_file, PATH_MAX, "/usr/apps/%s/lib/libug-%s.so", pkg_name, name);
+ snprintf(ug_file, PATH_MAX, "%s/%s/lib/libug-%s.so", tzplatform_getenv(TZ_SYS_RO_APP), pkg_name, name);
if (file_exist(ug_file))
break;
- snprintf(ug_file, PATH_MAX, "/opt/apps/%s/lib/libug-%s.so", pkg_name, name);
+ snprintf(ug_file, PATH_MAX, "%s/%s/lib/libug-%s.so", tzplatform_getenv(TZ_SYS_RO_APP), pkg_name, name);
if (file_exist(ug_file))
break;
}