diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-13 09:51:33 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-13 09:51:33 +0200 |
commit | 7cfbac7966d99568565abea25a57522288d9a279 (patch) | |
tree | 70a55385a01e3bcf08424ba8282bbe05d4c42a71 /src/applet/applet_gtk.c | |
parent | e027694734697f4aa27ed5858966f816de3d944e (diff) | |
download | abrt-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.c | 16 |
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) |