From 4c2d68bb4fa1cb09412445d4761c9f030fc7cf13 Mon Sep 17 00:00:00 2001 From: MyoungJune Park Date: Tue, 27 Nov 2012 10:52:59 +0900 Subject: [PATCH] modified plugin path --- src/setting-main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/setting-main.c b/src/setting-main.c index 7898d1c..bc8d9ab 100755 --- a/src/setting-main.c +++ b/src/setting-main.c @@ -26,6 +26,7 @@ #include #include +#define PLUGIN_PATH_FORMAT "/opt/apps/%s/setting/setting.xml" typedef struct DrawAppInfo DrawAppInfo; typedef struct DrawAppInfo @@ -956,13 +957,13 @@ static void __load_applications_level_all_list(void *data) __load_applications_menu_list(ad, Cfg_Item_Pos_Level_All); } + bool is_3rdapp_installed_setting_cfg(char* pkgname) { SETTING_TRACE_BEGIN; - // /usr/apps/ char path[512]; - if (snprintf(path, 512, "/usr/apps/%s/setting/setting.xml", pkgname) < 0) + if (snprintf(path, 512, PLUGIN_PATH_FORMAT, pkgname) < 0) return false; struct stat st; @@ -978,7 +979,6 @@ bool is_3rdapp_installed_setting_cfg(char* pkgname) return result_opt; } - /** * @param data */ @@ -993,7 +993,7 @@ static void draw_3rdapp(void* data, char* name, char* pkgname) //3rd cfg char fullpath[512]; - if (snprintf(fullpath, 512, "/usr/apps/%s/setting/setting.xml", pkgname) < 0) + if (snprintf(fullpath, 512, PLUGIN_PATH_FORMAT, pkgname) < 0) return false; SETTING_TRACE(" fullpath : %s", fullpath); -- 2.7.4