Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 826710 - app-office/gnucash-4.8 could not load or save preference.
Summary: app-office/gnucash-4.8 could not load or save preference.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-23 03:11 UTC by BrianHsu
Modified: 2022-11-23 05:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The build log. (build.log.xz,37.38 KB, application/x-xz)
2021-11-23 03:11 UTC, BrianHsu
Details
GnuCash trace file. (gnucash.trace,44.32 KB, text/plain)
2021-11-23 03:15 UTC, BrianHsu
Details
Steps I try to solve / investigate this problem. (gentoo-gnucash-not-save-preference.txt,6.64 KB, text/plain)
2021-11-23 03:19 UTC, BrianHsu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BrianHsu 2021-11-23 03:11:57 UTC
Created attachment 755346 [details]
The build log.

Expected Behavior:

  1. Launch a fresh installed GnuCash, it should display a splash screen and today's tip.
  2. Click Edit -> Preferences -> General -> Enable horizontal gird lines on table displays, the setting should be saved after GnuCash is closed. 

Actual Behavior:
  1. There is no splash nor today's tip being displayed.
  2. The preferences will not be stored. (There will be no ~/.config/dconf being generated.)

Steps to reproduce:
  1. emerge =app-office/gnucash-4.8 
  2. Launch gnucash --debug through command-line
  3. Change any preference under Edit -> Preferences
  4. Close GnuCash
  5. Launch gnucash again, the preferences is not saved.

Some observation:

  1. This only happens if I emerge =app-office/gnucash-4.8, other versions works fine.
  2. This only happens if I install gnucash from portage. If I downloaded the 4.8  source code from GnuCash and built it and install it to $HOME/opt, everything works correctly.
  3. The gnucash trace file shows 'WARN <gnc.app-utils.gsettings> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown gsettings schema org.gnucash.GnuCash.general'
  4. The ~/.config/dconf is not generated when it should be.
Comment 1 BrianHsu 2021-11-23 03:12:26 UTC
RyzenDesktop /var/db/repos # emerge --info app-office/gnucash
Portage 3.0.28 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop, gcc-11.2.0, glibc-2.34-r2, 5.15.3-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.3-gentoo-dist-x86_64-AMD_Ryzen_9_5900X_12-Core_Processor-with-glibc2.34
KiB Mem:    32847624 total,  27699508 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 23 Nov 2021 02:30:01 +0000
Head commit of repository gentoo: b80a2f3359803e176ac634490a6971713f0eda6e
Timestamp of repository gentoo-zh: Mon, 22 Nov 2021 15:21:22 +0000
Head commit of repository gentoo-zh: bf052b79f4ef19ce87b828c51a84fabb80211222

Timestamp of repository jorgicio: Fri, 19 Nov 2021 21:51:24 +0000
Head commit of repository jorgicio: 42d2aa42c6a62cc29f575b3c5f56295205e2fdc5

sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-shells/bash:          5.1_p12::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          3.9.9::gentoo, 3.10.0_p1::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/cmake:           3.22.0::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.8::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.37_p1-r1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.5-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.34-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo

jorgicio
    location: /var/db/repos/jorgicio
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/jorgicio.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE Vic-Fieger-License"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://ftp.twaren.net/Linux/Gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j24"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cjk cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif ffmpeg flac fortran gdbm gif gpm gtk gtk3 gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf plymouth png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan wxwidgets x264 xattr xcb xft xinerama xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2019" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 sse4_1 sse4_2 ssse3 sse3 f16c" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput joystick" KERNEL="linux" L10N="zh-CN ja ko zh-TW zh" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 2 BrianHsu 2021-11-23 03:15:50 UTC
Created attachment 755350 [details]
GnuCash trace file.

It says:
    Ignoring attempt to access unknown gsettings schema org.gnucash.GnuCash.general
Comment 3 BrianHsu 2021-11-23 03:19:17 UTC
Created attachment 755354 [details]
Steps I try to solve / investigate this problem.

Summary:

1. $XDG_DATA_DIRS is correctly set to /usr/local/share:/usr/share
2. gsettings schema org.gnucash.GnuCash.general do exist when I use the command `gsettings list-keys org.gnucash.GnuCash.general`
3.
Comment 4 BrianHsu 2021-11-26 01:33:34 UTC
Hi, I found this only happens when I installed some software that also use gsettings and install it to /usr/local, and only with GnuCash 4.8.

So here is the actual steps to reproduce:

1. Download and install https://github.com/regolith-linux/remontoire into /usr/linux
2. emerge =app-office/gnucash-4.8

Some additional information:

1. In the original additional information, I say "This only happens if I install gnucash from portage". This is not true, if I build and install GnuCash into /usr myself, it happens exactly the same thing.

Workaround:

1. My original env variable shows XDG_DATA_DIRS=/usr/local/share:/usr/share, a simple export XDG_DATA_DIRS=/usr/share:/usr/local/share did the trick, everything back to normal.

Since this involved 3rd party software I built my self and also could be solved by a simple env variable change. I'm not sure if this should be classified as Gentoo bug, because it should not affect user that only install package from portage. 

I'll left developers to decide if this bug should be closed.

Thanks for all of your help.
Comment 5 Marco Scardovi (scardracs) 2022-11-21 16:27:50 UTC
Could you tell me if the problem appears in 4.10? If not will you mind on closing that bug?
Comment 6 BrianHsu 2022-11-23 05:36:35 UTC
This issue is fixed, thanks.