diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2014-03-17 15:10:40 +0900 |
---|---|---|
committer | Kévin THIERRY <kevin.thierry@open.eurogiciel.org> | 2014-03-18 01:29:06 -0700 |
commit | c92cec0e876d638b91eb64e12e306e9a29ed2e8f (patch) | |
tree | 16c088f0c323e8786b5342daf4922d41033ee598 /src | |
parent | 93974ec6cbdf65e867ac41921ff0faae341040c5 (diff) | |
download | application-c92cec0e876d638b91eb64e12e306e9a29ed2e8f.tar.gz application-c92cec0e876d638b91eb64e12e306e9a29ed2e8f.tar.bz2 application-c92cec0e876d638b91eb64e12e306e9a29ed2e8f.zip |
Add multi-user supporttizen_3.0.m14.2_ivi_releasesubmit/tizen_ivi_panda/20140403.011812submit/tizen_ivi/20140626.144348submit/tizen_ivi/20140626.130032submit/tizen_ivi/20140626.125712submit/tizen_ivi/20140624.064036submit/tizen_ivi/20140623.000000submit/tizen_ivi/20140622.000000submit/tizen_ivi/20140619.000000submit/tizen_ivi/20140618.000001submit/tizen_ivi/20140618.000000submit/tizen_common/20140522.135644submit/tizen_common/20140522.130648submit/tizen_common/20140521.163740accepted/tizen/ivi/panda/20140403.015205tizen_ivi_pandatizen_3.0.m14.2_iviaccepted/tizen_ivi_panda
Bug-Tizen: PTREL-258
Change-Id: If4d974a2b064fcebd7b5cece39a60e97e324b6b4
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/app_main.c | 6 | ||||
-rwxr-xr-x | src/app_resource.c | 7 | ||||
-rwxr-xr-x | src/storage_internal.c | 4 |
3 files changed, 12 insertions, 5 deletions
diff --git a/src/app_main.c b/src/app_main.c index 81f4f5e..1b58f72 100755 --- a/src/app_main.c +++ b/src/app_main.c @@ -146,9 +146,11 @@ int app_appcore_create(void *data) app_set_appcore_event_cb(app_context); - snprintf(locale_dir, TIZEN_PATH_MAX, PATH_FMT_LOCALE_DIR, app_context->package); + snprintf(locale_dir, TIZEN_PATH_MAX, "%s/%s" PATH_FMT_RES_DIR + PATH_FMT_LOCALE_DIR, PATH_FMT_APP_ROOT, app_context->package); if (access(locale_dir, R_OK) != 0) { - snprintf(locale_dir, TIZEN_PATH_MAX, PATH_FMT_RO_LOCALE_DIR, app_context->package); + snprintf(locale_dir, TIZEN_PATH_MAX, "%s/%s" PATH_FMT_RO_RES_DIR + PATH_FMT_RO_LOCALE_DIR, PATH_FMT_RO_APP_ROOT, app_context->package); } appcore_set_i18n(app_context->app_name, locale_dir); diff --git a/src/app_resource.c b/src/app_resource.c index a3c2da5..cadcee8 100755 --- a/src/app_resource.c +++ b/src/app_resource.c @@ -33,14 +33,17 @@ #include <app_private.h> #include <app_service_private.h> +#include <tzplatform_config.h> + #ifdef LOG_TAG #undef LOG_TAG #endif #define LOG_TAG "CAPI_APPFW_APPLICATION" -static const char *INSTALLED_PATH = "/opt/usr/apps"; -static const char *RO_INSTALLED_PATH = "/usr/apps"; +#define INSTALLED_PATH tzplatform_getenv(TZ_USER_APP) +#define RO_INSTALLED_PATH tzplatform_getenv(TZ_SYS_RO_APP) + static const char *RES_DIRECTORY_NAME = "res"; static const char *DATA_DIRECTORY_NAME = "data"; diff --git a/src/storage_internal.c b/src/storage_internal.c index 9698630..ef59f29 100755 --- a/src/storage_internal.c +++ b/src/storage_internal.c @@ -27,13 +27,15 @@ #include <app_storage.h> #include <app_storage_private.h> +#include <tzplatform_config.h> + #ifdef LOG_TAG #undef LOG_TAG #endif #define LOG_TAG "CAPI_APPFW_APPLICATION_STORAGE" -#define INTERNAL_MEMORY_PATH "/opt/usr/media" +#define INTERNAL_MEMORY_PATH tzplatform_getenv(TZ_USER_CONTENT) int storage_internal_get_state() { |