#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
__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;
return result_opt;
}
-
/**
* @param data
*/
//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);