unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Adam Van Ymeren <adam@vany.ca>
Cc: 28462@debbugs.gnu.org
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	[thread overview]
Message-ID: <87377idwx8.fsf@gmail.com> (raw)
In-Reply-To: <87bmmdyunp.fsf@vany.ca> (Adam Van Ymeren's message of "Thu, 14 Sep 2017 14:58:18 -0400")

[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]

Hello Adam,

Adam Van Ymeren <adam@vany.ca> 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?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-gnucash-Propagate-dbus-and-dconf.patch --]
[-- Type: text/x-patch, Size: 1575 bytes --]

From 3d6f3da4e8a216ed435777f0a038fc90911503a7 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
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


  reply	other threads:[~2017-09-20  0:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-14 18:58 bug#28462: gnucash dies when generating reports in i3, works in GNOME Adam Van Ymeren
2017-09-20  0:40 ` Maxim Cournoyer [this message]
2018-06-09  4:30   ` bug#28462: [PATCH] " Chris Marusich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87377idwx8.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=28462@debbugs.gnu.org \
    --cc=adam@vany.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).