From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#28462: [PATCH] Re: bug#28462: gnucash dies when generating reports in i3, works in GNOME Date: Tue, 19 Sep 2017 20:40:51 -0400 Message-ID: <87377idwx8.fsf@gmail.com> References: <87bmmdyunp.fsf@vany.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duT5b-0003tU-GA for bug-guix@gnu.org; Tue, 19 Sep 2017 20:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duT5W-0003Gq-It for bug-guix@gnu.org; Tue, 19 Sep 2017 20:42:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40162) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duT5W-0003Gf-EW for bug-guix@gnu.org; Tue, 19 Sep 2017 20:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duT5V-0004nI-Up for bug-guix@gnu.org; Tue, 19 Sep 2017 20:42:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87bmmdyunp.fsf@vany.ca> (Adam Van Ymeren's message of "Thu, 14 Sep 2017 14:58:18 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Adam Van Ymeren Cc: 28462@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello Adam, Adam Van Ymeren writes: > Here's a bug report I've been sitting on for a while. I've been meaning > to dig in to it further but haven't had the time so I figured I should > at least post it in case anyone else has experienced this or knows a fix. > > Generating reports in gnucash cause it to die when running in the > default i3 session. > > If I run in the default GNOME session it works fine. > > I believe the problem is related to not having a running GSettings > daemon. As a ratpoison user, I also suffered from problems caused by the lack of a GSettings backend when not running Gnome; for example, the preferences would not be saved across GnuCash restarts. To fix this, I had to manually install dbus and dconf to my profile. The attached patch automates this by automatically propagating those dependencies when GnuCash is installed. It would be nicer to make dbus and dconf work as regular inputs but this would require patching the sources; I haven't investigated if how feasible this would be. Could you try the patch and see if it fixes your issues? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-gnucash-Propagate-dbus-and-dconf.patch >From 3d6f3da4e8a216ed435777f0a038fc90911503a7 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 20 Feb 2017 18:29:28 -0800 Subject: [PATCH] gnu: gnucash: Propagate dbus and dconf. This ensures that a GSettings backend is present; this is necessary to persist the GnuCash settings and state. * gnu/packages/gnucash.scm (gnucash)[propagated-inputs]: Add dbus and dconf. [phases]: Define HOME, which prevents multiple warnings at build time. --- gnu/packages/gnucash.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/gnucash.scm b/gnu/packages/gnucash.scm index ac2dce576..c421df80d 100644 --- a/gnu/packages/gnucash.scm +++ b/gnu/packages/gnucash.scm @@ -70,12 +70,19 @@ `(("glib" ,glib "bin") ; glib-compile-schemas, etc. ("intltool" ,intltool) ("pkg-config" ,pkg-config))) + (propagated-inputs + `(("dbus" ,dbus) ;enable gsettings preference backend + ("dconf" ,dconf))) ;likewise (arguments `(#:tests? #f ;FIXME: failing at /qof/gnc-date/qof print date dmy buff #:configure-flags '("--disable-dbi" "--enable-aqbanking") #:phases (modify-phases %standard-phases + ;; Avoid build time warnings by setting $HOME. + (add-before 'build 'set-home + (lambda _ + (setenv "HOME" (getenv "TMPDIR")))) (add-after 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) -- 2.14.1 --=-=-=--