From: MyoungJune Park Date: Tue, 27 Nov 2012 01:52:59 +0000 (+0900) Subject: modified plugin path X-Git-Tag: accepted/tizen_2.1/20130425.022820~31^2~127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c2d68bb4fa1cb09412445d4761c9f030fc7cf13;p=apps%2Fhome%2Fsettings.git modified plugin path --- 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);