Thank you for the patch!
Is there any possibility to detect whether the gsetting has the default value
in order to be able to fallback to the ABRT configuration files?
I don't want to ditch the current configuration :(
Regards,
Jakub
On Wednesday 14 of January 2015 12:05:59 Bastien Nocera wrote:
Closes #107
---
configure.ac | 1 +
src/applet/applet.c | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 436cfcd..1e32ffe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,6 +141,7 @@ PKG_CHECK_MODULES([POLKIT], [polkit-gobject-1])
PKG_CHECK_MODULES([GIO], [gio-2.0])
PKG_CHECK_MODULES([SATYR], [satyr])
PKG_CHECK_MODULES([SYSTEMD_JOURNAL], [libsystemd-journal])
+PKG_CHECK_MODULES([GSETTINGS_DESKTOP_SCHEMAS], [gsettings-desktop-schemas
>= 3.15.1])
PKG_PROG_PKG_CONFIG
AC_ARG_WITH([systemdsystemunitdir],
diff --git a/src/applet/applet.c b/src/applet/applet.c
index e5ac02a..1aa8cfe 100644
--- a/src/applet/applet.c
+++ b/src/applet/applet.c
@@ -83,7 +83,13 @@ static bool get_configured_bool_or_default(const char
*opt_name, bool def)
static bool is_autoreporting_enabled(void)
{
- return get_configured_bool_or_default("AutoreportingEnabled",
g_settings_autoreporting); + GSettings *settings;
+ gboolean ret;
+
+ settings = g_settings_new ("org.gnome.desktop.privacy");
+ ret = g_settings_get_boolean (settings, "report-technical-problems");
+ g_object_unref (settings);
+ return ret;
}
static bool is_ureport_auth_enabled(void)