From 994540994aa55146c6b68348147b4046d1fed975 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 24 Aug 2009 14:59:00 +0200 Subject: Try to execute $bindir/abrt-gui, then fall back to $PATH search. Closes bug 65 Signed-off-by: Denys Vlasenko --- src/Applet/CCApplet.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Applet/CCApplet.cpp') diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp index 32c1fe50..f60c4b60 100644 --- a/src/Applet/CCApplet.cpp +++ b/src/Applet/CCApplet.cpp @@ -116,10 +116,9 @@ void CApplet::OnAppletActivate_CB(GtkStatusIcon *status_icon,gpointer user_data) if (pid == 0) { /* child */ signal(SIGCHLD, SIG_DFL); /* undo SIG_IGN in abrt-applet */ - /* execlp searches PATH. We do not need to supply the path this way, - * and user has a freedom to install abrt-gui whereever he pleases. - * He just needs to set up PATH accordingly. - */ + execl(BIN_DIR"/abrt-gui", "abrt-gui", (char*) NULL); + /* Did not find abrt-gui in installation directory. Oh well */ + /* Trying to find it in PATH */ execlp("abrt-gui", "abrt-gui", (char*) NULL); std::cerr << "can't exec abrt-gui\n"; exit(1); -- cgit