-I$(top_builddir)/src/lib/efreet \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
--DPACKAGE_DATA_DIR=\"$(datadir)\" \
+-DPACKAGE_DATA_DIR=\"$(datadir)/efreet\" \
+-DDATA_DIR=\"$(datadir)\" \
-DLOCALE_DIR=\"@LOCALE_DIR@\" \
-DEFL_EFREET_BUILD \
@EFL_COV_CFLAGS@ \
if (xdg_data_dirs) return xdg_data_dirs;
#ifdef _WIN32
- snprintf(buf, 4096, "%s\\Efl;" PACKAGE_DATA_DIR ";/usr/share;/usr/local/share", getenv("APPDATA"));
+ snprintf(buf, 4096, "%s\\Efl;" DATA_DIR ";/usr/share;/usr/local/share", getenv("APPDATA"));
xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", buf);
#else
xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS",
- PACKAGE_DATA_DIR ":/usr/share:/usr/local/share");
+ DATA_DIR ":/usr/share:/usr/local/share");
#endif
return xdg_data_dirs;
}
unsigned int ok;
char dirs[128], *val;
char *vals[] = {"/var/tmp/a", "/tmp/b", "/usr/local/share", "/etc", NULL};
- char *def_vals[] = {PACKAGE_DATA_DIR, "/usr/share", "/usr/local/share", NULL};
+ char *def_vals[] = {DATA_DIR, "/usr/share", "/usr/local/share", NULL};
dirs[0] = '\0';
for (i = 0; vals[i]; i++)
Eina_List *l;
int ret = 1;
- desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop");
+ desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/test/test.desktop");
if (!desktop)
{
printf("No desktop found.\n");
Efreet_Desktop *desktop;
int ret = 1;
- desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop");
+ desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/test/test.desktop");
if (desktop)
{
const char *id;
char *prefix;
char *expected;
} tests[] = {
- {PACKAGE_DATA_DIR"/efreet/test/", 0, NULL, "test.desktop"},
- {PACKAGE_DATA_DIR"/efreet/", 0, NULL, "test-test.desktop"},
- {PACKAGE_DATA_DIR"/efreet/", 1, NULL, "test.desktop"},
- {PACKAGE_DATA_DIR"/efreet/", 1, "prefix", "prefix-test.desktop"},
+ {PACKAGE_DATA_DIR"/test/", 0, NULL, "test.desktop"},
+ {PACKAGE_DATA_DIR"/", 0, NULL, "test-test.desktop"},
+ {PACKAGE_DATA_DIR"/", 1, NULL, "test.desktop"},
+ {PACKAGE_DATA_DIR"/", 1, "prefix", "prefix-test.desktop"},
{NULL, 0, NULL, NULL}
};
Efreet_Desktop *desktop;
printf("\n");
- desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop");
+ desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/test/test.desktop");
if (!desktop)
{
printf("Failed to get Desktop file\n");
my_type = efreet_desktop_type_add("My_Type", cb_type_parse, NULL,
(Efreet_Desktop_Type_Free_Cb)free);
- desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test_type.desktop");
+ desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/test/test_type.desktop");
if (!desktop)
{
printf("No desktop found.\n");
putenv("LC_ALL=en_US");
- ini = efreet_ini_new(PACKAGE_DATA_DIR"/efreet/test/test.ini");
+ ini = efreet_ini_new(PACKAGE_DATA_DIR"/test/test.ini");
if (!ini)
{
printf("efreet_ini_parse() Failed to initialize Efreet_Ini\n");
{NULL, 0}
};
- ini = efreet_ini_new(PACKAGE_DATA_DIR"/efreet/test/long.ini");
+ ini = efreet_ini_new(PACKAGE_DATA_DIR"/test/long.ini");
if (!ini)
{
printf("Ini failed to parse.\n");
Efreet_Ini *ini;
int ret = 1;
- ini = efreet_ini_new(PACKAGE_DATA_DIR"/efreet/test/test_garbage");
+ ini = efreet_ini_new(PACKAGE_DATA_DIR"/test/test_garbage");
if (!ini)
{
printf("Ini failed to parse.\n");
Efreet_Menu *menu;
menu = efreet_menu_get();
-// menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu");
+// menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu");
if (!menu)
{
printf("efreet_menu_get() returned NULL\n");
{
Efreet_Menu *menu;
- menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test_menu_slash_bad.menu");
+ menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test_menu_slash_bad.menu");
if (menu)
{
printf("efreet_menu_get() didn't return NULL\n");
int ret;
// menu = efreet_menu_get();
- menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu");
+ menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu");
if (!menu)
{
printf("efreet_menu_get() returned NULL\n");
Efreet_Desktop *desktop;
// menu = efreet_menu_get();
- menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu");
+ menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu");
if (!menu)
{
printf("efreet_menu_get() returned NULL\n");
printf("\n");
#endif
- desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop");
+ desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/test/test.desktop");
if (!desktop)
{
efreet_menu_free(menu);
char *file;
char *mime;
} files[] = {
- {PACKAGE_DATA_DIR"/efreet/test/test_type.desktop", "application/x-desktop"},
- {PACKAGE_DATA_DIR"/efreet/test/entry.png", "image/png"},
- {PACKAGE_DATA_DIR"/efreet/test/entry", "image/png"},
- {PACKAGE_DATA_DIR"/efreet/test/sub", "inode/directory"},
+ {PACKAGE_DATA_DIR"/test/test_type.desktop", "application/x-desktop"},
+ {PACKAGE_DATA_DIR"/test/entry.png", "image/png"},
+ {PACKAGE_DATA_DIR"/test/entry", "image/png"},
+ {PACKAGE_DATA_DIR"/test/sub", "inode/directory"},
{NULL, NULL}
};
double start;