diff options
author | Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org> | 2014-02-10 14:26:55 +0100 |
---|---|---|
committer | Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org> | 2014-02-17 14:11:16 +0100 |
commit | f0e0a08562a88cac22640384e1f8cadbec9f4ce1 (patch) | |
tree | 73fa28ff19b417191ab5050b438a03992537d8c6 /src | |
parent | db3a1d59af5970efaf7f2578d641484965e831b7 (diff) | |
download | ui-gadget-1-submit/tizen/20140221.103828.tar.gz ui-gadget-1-submit/tizen/20140221.103828.tar.bz2 ui-gadget-1-submit/tizen/20140221.103828.zip |
Remove hardcoded path for multiuser supportsubmit/tizen_ivi_release/20140312.071122submit/tizen/20140312.070647submit/tizen/20140221.103828accepted/tizen/mobile/20140227.071751accepted/tizen/ivi/release/20140312.123825accepted/tizen/ivi/panda/20140312.111918accepted/tizen/ivi/20140221.200041accepted/tizen/generic/20140312.094911accepted/tizen/generic/20140221.132647accepted/tizen/generic
bug-tizen: PTREL-662
Change-Id: I66ab7ff37a89703576ea90885300364cc63f8bf6
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/module.c | 6 |
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; } |