modified plugin path
authorMyoungJune Park <mj2004.park@samsung.com>
Tue, 27 Nov 2012 01:52:59 +0000 (10:52 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Tue, 27 Nov 2012 01:54:35 +0000 (10:54 +0900)
src/setting-main.c

index 7898d1c..bc8d9ab 100755 (executable)
@@ -26,6 +26,7 @@
 #include <setting-main.h>
 #include <setting-plugin.h>
 
+#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);