From 4329eab307d02032e91c2e52d0eaa2294a400d04 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
 <marmarek@invisiblethingslab.com>
Date: Wed, 2 May 2018 03:02:07 +0200
Subject: [PATCH] Require dconf utility to (re)build /etc/dconf/db/local

Some applications complains if compiled version of dconf database is
missing ("dconf-WARNING **: unable to open file '/etc/dconf/db/local':
Failed to open file '/etc/dconf/db/local': open() failed: No such file
or directory; expect degraded performance").
There is only one entry in that database, but generate its binary
version anyway to avoid that warning message.

The dconf call is already included in package scripts, now only make
sure the utility is really installed.

QubesOS/qubes-issues#1951
---
 debian/control              | 1 +
 rpm_spec/core-agent.spec.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/debian/control b/debian/control
index aa58554..4cc1190 100644
--- a/debian/control
+++ b/debian/control
@@ -26,6 +26,7 @@ Vcs-Git: https://github.com/QubesOS/qubes-core-agent-linux
 Package: qubes-core-agent
 Architecture: any
 Depends:
+    dconf-cli,
     dmsetup,
     gawk,
     imagemagick,
diff --git a/rpm_spec/core-agent.spec.in b/rpm_spec/core-agent.spec.in
index 86ee215..45c3ae1 100644
--- a/rpm_spec/core-agent.spec.in
+++ b/rpm_spec/core-agent.spec.in
@@ -129,6 +129,7 @@ Requires:   python2-qubesdb
 Requires:   ImageMagick
 Requires:   librsvg2-tools
 Requires:   zenity
+Requires:   dconf
 Requires:   qubes-core-agent-qrexec
 Requires:   qubes-libvchan
 Requires:   qubes-db-vm