diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am index a5a1dd6..68346a5 100644 --- a/src/bin/Makefile.am +++ b/src/bin/Makefile.am @@ -8,6 +8,7 @@ ephoto_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/bin \ -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ + -DPACKAGE_LIB_DIR=\"$(libdir)/$(PACKAGE)\" \ -Wall \ -Wextra \ -Wshadow \ @@ -38,13 +39,14 @@ ephoto_SOURCES = \ ephoto_thumb.c \ ephoto_thumb_browser.c -internal_bindir = $(datadir)/$(PACKAGE) +internal_bindir = $(libdir)/$(PACKAGE) internal_bin_PROGRAMS = ephoto_thumbnail ephoto_thumbnail_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/bin \ -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ + -DPACKAGE_LIB_DIR=\"$(libdir)/$(PACKAGE)\" \ -Wall \ -Wextra \ -Wshadow \ diff --git a/src/bin/ephoto_thumb.c b/src/bin/ephoto_thumb.c index 07d2873..0f97158 100644 --- a/src/bin/ephoto_thumb.c +++ b/src/bin/ephoto_thumb.c @@ -139,7 +139,7 @@ e_thumb_icon_begin(Evas_Object *obj) { Ecore_Exe *exe; - snprintf(buf, sizeof(buf), "%s/ephoto_thumbnail --nice=1", PACKAGE_DATA_DIR); + snprintf(buf, sizeof(buf), "%s/ephoto_thumbnail --nice=1", PACKAGE_LIB_DIR); exe = ecore_exe_run(buf, NULL); _thumbnailers_exe = eina_list_append(_thumbnailers_exe, exe); } @@ -429,7 +429,7 @@ _e_thumb_cb_exe_event_del(void *data EINA_UNUSED, int type EINA_UNUSED, void *ev Ecore_Exe *exe_thumb; char buf[4096]; - snprintf(buf, sizeof(buf), "%s/ephoto_thumbnail --nice=1", PACKAGE_DATA_DIR); + snprintf(buf, sizeof(buf), "%s/ephoto_thumbnail --nice=1", PACKAGE_LIB_DIR); exe_thumb = ecore_exe_run(buf, NULL); _thumbnailers_exe = eina_list_append(_thumbnailers_exe, exe_thumb); }