summaryrefslogtreecommitdiffstats
path: root/src/applet/applet_gtk.c
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-05-13 09:51:33 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2011-05-13 09:51:33 +0200
commit7cfbac7966d99568565abea25a57522288d9a279 (patch)
tree70a55385a01e3bcf08424ba8282bbe05d4c42a71 /src/applet/applet_gtk.c
parente027694734697f4aa27ed5858966f816de3d944e (diff)
downloadabrt-7cfbac7966d99568565abea25a57522288d9a279.tar.gz
abrt-7cfbac7966d99568565abea25a57522288d9a279.tar.xz
abrt-7cfbac7966d99568565abea25a57522288d9a279.zip
report api proposal
Diffstat (limited to 'src/applet/applet_gtk.c')
-rw-r--r--src/applet/applet_gtk.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/applet/applet_gtk.c b/src/applet/applet_gtk.c
index 8071ec14..524aca7c 100644
--- a/src/applet/applet_gtk.c
+++ b/src/applet/applet_gtk.c
@@ -18,6 +18,7 @@
*/
#include "abrtlib.h"
#include "applet_gtk.h"
+#include "libreport-gtk.h"
static gboolean persistent_notification;
@@ -85,20 +86,7 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin
struct applet *applet = (struct applet *)user_data;
if (applet->ap_daemon_running)
{
- pid_t pid = vfork();
- if (pid < 0)
- perror_msg("vfork");
- if (pid == 0)
- { /* child */
- signal(SIGCHLD, SIG_DFL); /* undo SIG_IGN in abrt-applet */
- execl(BIN_DIR"/bug-reporting-wizard", "bug-reporting-wizard",
- applet->ap_last_crash_id, (char*) NULL);
- /* Did not find abrt-gui in installation directory. Oh well */
- /* Trying to find it in PATH */
- execlp("bug-reporting-wizard", "bug-reporting-wizard",
- applet->ap_last_crash_id, (char*) NULL);
- perror_msg_and_die("Can't execute abrt-gui");
- }
+ analyze_and_report_dir(applet->ap_last_crash_id);
GError *err = NULL;
notify_notification_close(notification, &err);
if (err != NULL)