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-10 14:26:55 +0100 |
commit | d4b9f61d4056eeccbcceafd908abe2ac98e0a8ff (patch) | |
tree | 8d9807a14c4320b5d926cc8e15cc65b667be59a8 /src/module.c | |
parent | 3a86573c836fcbe7cb6072e5607b4216c6c5c133 (diff) | |
download | ui-gadget-1-sandbox/sdi2/multiuser.tar.gz ui-gadget-1-sandbox/sdi2/multiuser.tar.bz2 ui-gadget-1-sandbox/sdi2/multiuser.zip |
Remove hardcoded path for multiuser supportsandbox/sdi2/multiuser
bug-tizen: PTREL-662
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Diffstat (limited to 'src/module.c')
-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; } |