|
|
b404a9 |
From 9bc8bc16ca37d2e5c0caa20649a92dc1ae814051 Mon Sep 17 00:00:00 2001
|
|
|
b404a9 |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
b404a9 |
Date: Mon, 24 Feb 2014 11:24:20 +0100
|
|
|
b404a9 |
Subject: [ABRT PATCH 38/40] stop sending ureports from abrt-applet
|
|
|
b404a9 |
|
|
|
b404a9 |
Related to rhbz#1067114
|
|
|
b404a9 |
|
|
|
b404a9 |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
b404a9 |
---
|
|
|
b404a9 |
src/applet/applet.c | 10 ++++++++++
|
|
|
b404a9 |
1 file changed, 10 insertions(+)
|
|
|
b404a9 |
|
|
|
b404a9 |
diff --git a/src/applet/applet.c b/src/applet/applet.c
|
|
|
b404a9 |
index 131d2ab..6ce400f 100644
|
|
|
b404a9 |
--- a/src/applet/applet.c
|
|
|
b404a9 |
+++ b/src/applet/applet.c
|
|
|
b404a9 |
@@ -49,6 +49,8 @@
|
|
|
b404a9 |
|
|
|
b404a9 |
#define GUI_EXECUTABLE "gnome-abrt"
|
|
|
b404a9 |
|
|
|
b404a9 |
+#define RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
+
|
|
|
b404a9 |
enum
|
|
|
b404a9 |
{
|
|
|
b404a9 |
/*
|
|
|
b404a9 |
@@ -90,6 +92,7 @@ static bool is_autoreporting_enabled(void)
|
|
|
b404a9 |
return get_configured_bool_or_default("AutoreportingEnabled", g_settings_autoreporting);
|
|
|
b404a9 |
}
|
|
|
b404a9 |
|
|
|
b404a9 |
+#ifndef RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
static bool is_ureport_auth_enabled(void)
|
|
|
b404a9 |
{
|
|
|
b404a9 |
bool success, auth_enabled;
|
|
|
b404a9 |
@@ -110,6 +113,7 @@ static bool is_ureport_auth_enabled(void)
|
|
|
b404a9 |
|
|
|
b404a9 |
return auth_enabled;
|
|
|
b404a9 |
}
|
|
|
b404a9 |
+#endif//RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
|
|
|
b404a9 |
static const char *get_autoreport_event_name(void)
|
|
|
b404a9 |
{
|
|
|
b404a9 |
@@ -118,6 +122,7 @@ static const char *get_autoreport_event_name(void)
|
|
|
b404a9 |
return configured ? configured : g_settings_autoreporting_event;
|
|
|
b404a9 |
}
|
|
|
b404a9 |
|
|
|
b404a9 |
+#ifndef RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
static void ask_start_autoreporting()
|
|
|
b404a9 |
{
|
|
|
b404a9 |
struct strbuf *question = strbuf_new();
|
|
|
b404a9 |
@@ -156,6 +161,7 @@ static void ask_start_autoreporting()
|
|
|
b404a9 |
/* must be called immediately, otherwise the data could be lost in case of crash */
|
|
|
b404a9 |
save_user_settings();
|
|
|
b404a9 |
}
|
|
|
b404a9 |
+#endif//RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
|
|
|
b404a9 |
static bool is_shortened_reporting_enabled()
|
|
|
b404a9 |
{
|
|
|
b404a9 |
@@ -632,10 +638,13 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin
|
|
|
b404a9 |
problem_info_t *pi = (problem_info_t *)user_data;
|
|
|
b404a9 |
if (problem_info_get_dir(pi))
|
|
|
b404a9 |
{
|
|
|
b404a9 |
+#ifndef RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
if (strcmp(A_REPORT_REPORT, action) == 0)
|
|
|
b404a9 |
{
|
|
|
b404a9 |
+#endif//RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
run_report_from_applet(problem_info_get_dir(pi));
|
|
|
b404a9 |
problem_info_free(pi);
|
|
|
b404a9 |
+#ifndef RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
}
|
|
|
b404a9 |
else
|
|
|
b404a9 |
{
|
|
|
b404a9 |
@@ -647,6 +656,7 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin
|
|
|
b404a9 |
run_event_async(pi, get_autoreport_event_name(),
|
|
|
b404a9 |
is_shortened_reporting_enabled() ? 0 : REPORT_UNKNOWN_PROBLEM_IMMEDIATELY);
|
|
|
b404a9 |
}
|
|
|
b404a9 |
+#endif//RHBZ_1067114_NO_UREPORT
|
|
|
b404a9 |
}
|
|
|
b404a9 |
else
|
|
|
b404a9 |
problem_info_free(pi);
|
|
|
b404a9 |
--
|
|
|
b404a9 |
1.8.3.1
|
|
|
b404a9 |
|