After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 330203 - Always "cannot find default gconf values" on startup
Always "cannot find default gconf values" on startup
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
git-master
Other All
: Normal normal
: ---
Assigned To: David Hampton
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2006-02-07 02:32 UTC by Mark Johnson
Modified: 2018-06-29 20:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mark Johnson 2006-02-07 02:32:18 UTC
Please describe the problem:
Every time I start gnucash, I get a dialog stating that gnucash "cannot find 
default values".  Then a druid is launched to fix this situation.  (I have 
always accepted all its defaults.) This occurs on every startup. 

Steps to reproduce:
1. start gnucash 
2.  
3.  
 

Actual results:
After the "Cannot find default values" dialog, I get a druid which purports to 
fix this problem.  However, it occurs again on the next startup. 

Expected results:
I expected only to have to go through this druid for one startup. 

Does this happen every time?
Yes. 

Other information:
I am using an opt-style install. 
The path to gnucash is not in my PATH environment variable. 
I change to the /opt/gnucash-svn-#####/bin directory and start gnucash by 
typing "gnucash". 
I only have one version of gnucash-svn installed at a time.  Most recently, I 
even removed the previous version prior to building the new one (even though 
the gnucash install location is not on any of my paths and so the current 
install should not interfere with a new build).
Comment 1 Christian Stimming 2006-02-07 09:28:16 UTC
Which distro/OS is this? 
Comment 2 Herbert Thoma 2006-02-07 19:49:03 UTC
I see the same bug.

I use SUSE 9.3.
Comment 3 Mark Johnson 2006-02-08 00:45:11 UTC
I am using Slackware Linux version 10.2.  Kernel version is 2.6.12.
Comment 4 Mark Johnson 2006-02-08 02:03:21 UTC
This may be interesting.  Here is the contents of my newly created ~/.gconf.path file.  (This was created after I deleted the old one as suggested on gnucash-devel to see if this problem was fixed.

######## The following lines were added by Gnucash. ########
xml:readwrite:$(HOME)/.gconf
xml:readonly:/opt/gnucash-svn13130/etc/gconf/gconf.xml.defaults
############## End of lines added by Gnucash. ##############

######## The following lines were added by Gnucash. ########
xml:readonly:/opt/gnucash-svn13130/etc/gconf/gconf.xml.defaults
############## End of lines added by Gnucash. ##############

Question: could this be related to the opt-style install?
Also note that I do "make install DESTDIR=`pwd`/tmp") in order to make a slackware package that I later install.
I notice that the referred to file (gconf.xml.defaults) does not exist!  Instead the gconf directory contains only a subdirectory called schemas.
It looks as though the druid is adding to the end of this file each time gnucash is run.  A third run confirms this.
Comment 5 David Hampton 2006-02-09 02:48:43 UTC
The problem is that you're installing from a package instead of installing directly from source.  The gconf default key values aren't being written to your
temporary destination directory and thus aren't included in the package.
Other applications that use gconf (c.f. evolution, evince, etc) only include the schemas in the package and then install the default key values as part of the rpm post-install script.

I'll have to go look at the build systems for one of these applications
and see if I can figure out how to fix gnucash so that keys are installed correctly for both developers and packagers.

The duplicate lines in .gconf.path are a problem that needs to be fixed.
Comment 6 Christian Stimming 2006-02-09 11:00:04 UTC
Also note that on http://www.gnome.org/projects/gconf/ , section "Application developer information", the GConf documentation explicitly states that with package building, the packagers are expected to "disable schema installation during the "make install" phase" and "then in the post-install script, run something" else. In other words, it's not directly clear whether this problem should be fixed in gnucash or is rather a conceptual problem of gconf.
Comment 7 Herbert Thoma 2006-02-09 15:10:41 UTC
Well, as said before, I get the same error. But I build from SVN:

./autogen.sh

./configure --prefix=/opt/gnucash/test_install/cvs_head --with-g-wrap-prefix=/opt/gnucash/g-wrap-latest --build=i686-pc-linux-gnu

make

su

make install

I even deleted the whole tree under /opt/gnucash/test_install/cvs_head and built from a fresh SVN checkout. I still get the druid every time I start gnucash. This happens on a SUSE 9.3 system.

I just built on a SUSE 10.0 system and there it works (i.e. the druid shows up only the first time I start GnuCash).
Comment 8 David Hampton 2006-04-15 06:50:10 UTC
Is this still a problem on 9.3?  Can the bug report be closed?
Comment 9 Mark Johnson 2006-04-15 14:09:29 UTC
Comments #5 & #6 explained it for me.  I modified my packaging scripts so that the values are written to gconfd during the install of the package.  

I don't know if comment #7 is fixed.
Comment 10 Herbert Thoma 2006-04-17 18:01:55 UTC
comment #7 is still valid. I think the problem is that make install does not install anything into /opt/gnucash/test_install/cvs_head/etc/gconf/gconf.xml.defaults/
Comment 11 David Hampton 2006-04-18 21:14:46 UTC
I downloaded and installed SuSe 9.3 into a virtual machine, then compiled and installed gnucash.  I do not see this behavior.  Gnucash presented the "cannot find default values" dialog once, and has not presented it a second time.  I can only conclude that the problem is specific to your suse 9.3 system and not a general problem with gnucash or suse 9.3, so I'm closing this bug.
Comment 12 John Ralls 2018-06-29 20:56:53 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=330203. Please update any external references or bookmarks.