summaryrefslogtreecommitdiffstats
path: root/src/Applet
diff options
context:
space:
mode:
Diffstat (limited to 'src/Applet')
-rw-r--r--src/Applet/CCApplet.cpp4
-rw-r--r--src/Applet/CCApplet.h4
-rw-r--r--src/Applet/Makefile.am1
3 files changed, 7 insertions, 2 deletions
diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp
index 13c734ea..19887488 100644
--- a/src/Applet/CCApplet.cpp
+++ b/src/Applet/CCApplet.cpp
@@ -98,8 +98,8 @@ void CApplet::OnAppletActivate_CB(GtkStatusIcon *status_icon,gpointer user_data)
{
CApplet *applet = (CApplet *)user_data;
FILE *gui = NULL;
- //FIXME - use fork+exec and absolute paths?
- gui = popen("/usr/bin/abrt-gui","r");
+ //FIXME - use fork+exec and absolute paths? or dbus?
+ gui = popen((std::string(BIN_DIR) + "/abrt-gui").c_str(),"r");
gtk_status_icon_set_visible(applet->m_pStatusIcon,false);
}
diff --git a/src/Applet/CCApplet.h b/src/Applet/CCApplet.h
index 98472b46..86a146d6 100644
--- a/src/Applet/CCApplet.h
+++ b/src/Applet/CCApplet.h
@@ -26,6 +26,10 @@
#include <DBusClientProxy.h>
#include<libnotify/notify.h>
+#ifndef BIN_DIR
+ #define BIN_DIR "/usr/bin"
+#endif
+
class CApplet
: public CDBusClient_proxy,
public DBus::IntrospectableProxy,
diff --git a/src/Applet/Makefile.am b/src/Applet/Makefile.am
index 591a8411..bbf65999 100644
--- a/src/Applet/Makefile.am
+++ b/src/Applet/Makefile.am
@@ -2,6 +2,7 @@ bin_PROGRAMS = abrt-applet
abrt_applet_SOURCES = Applet.cpp CCApplet.cpp CCApplet.h
abrt_applet_CPPFLAGS = -Wall -Werror -I../Daemon/ \
-DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \
+ -DBIN_DIR=\"$(bindir)\" \
$(DBUS_GLIB_CFLAGS) $(GTK_CFLAGS) $(DBUSCPP_CFLAGS) $(LIBNOTIFY_CFLAGS)\
-I$(srcdir)/../../inc -I../../lib/CommLayer \
-I../../lib/MiddleWare -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include