summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-24 14:59:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-24 14:59:00 +0200
commit994540994aa55146c6b68348147b4046d1fed975 (patch)
tree51b8b17390374325166563b9168781a95f4cb5d7 /src
parent5a84344a06a3a75dd9ac74e2692c74aa73717c07 (diff)
downloadabrt-994540994aa55146c6b68348147b4046d1fed975.tar.gz
abrt-994540994aa55146c6b68348147b4046d1fed975.tar.xz
abrt-994540994aa55146c6b68348147b4046d1fed975.zip
Try to execute $bindir/abrt-gui, then fall back to $PATH search. Closes bug 65
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/Applet/CCApplet.cpp7
1 files changed, 3 insertions, 4 deletions
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);