migrate prefs runs everytime I start 2.6.
Michael Carney
mwc-250sav at att.net
Sun Jan 26 15:24:36 EST 2014
On 01/26/2014 04:05 AM, Geert Janssens wrote:
>
> On Saturday 25 January 2014 16:39:50 Michael Carney wrote:
>
> > Hi,
>
> >
>
> > I notice that every time I start gnucash 2.6, a migrate prefs
>
> > operation (from gconf) runs. Seems like that should be something that
>
> > should run just once, IMHO.
>
> >
>
> Heh, I wrote that code. My main work machine is Fedora 19 64-bit. It
> worked fine there.
>
> Perhaps indeed there's something different in Fedora 20, or it could
> be a packaging bug.
>
> Can you create a bug report for this ? I will look into this but I'm
> short in time right now. If there's a bug report there's less chance I
> forget.
>
> Thanks,
>
> Geert
>
Greetings, Geert:
I did some poking around and found out the following:
610> gsettings list-keys org.gnucash.dialogs.tip-of-the-day
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings
will not be saved or shared with other applications.
last-geometry
611> gsettings get org.gnucash.dialogs.tip-of-the-day last-geometry
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings
will not be saved or shared with other applications.
(-1, -1, -1, -1)
612>
The only key present is last-geometry. current-tips and show-at-startup
are missing. There are values for them in my
~/.gconf/dialogs/tip_of_the_day/%gconf.xml file:
460> cat %*
<?xml version="1.0"?>
<gconf>
<entry name="window_position" mtime="1307765879" type="list"
ltype="int">
<li type="int" value="437"/>
<li type="int" value="335"/>
</entry>
<entry name="window_geometry" mtime="1307765879" type="list"
ltype="int">
<li type="int" value="400"/>
<li type="int" value="300"/>
</entry>
<entry name="show_at_startup" mtime="1307765876" type="bool"
value="false"/>
<entry name="current_tip" mtime="1307765874" type="int" value="1"/>
</gconf>
461>
Note that the migration script doesn't list any groups via "Processing
preferences in group" message in
/usr/share/gnucash/make-prefs-migration-script.xsl:
466> strace -f /bin/gnucash --nofile 2> /tmp/c
Preference migration has finished
Found Finance::Quote version 1.17
467>
Even though the file(s) for migration were created during startup:
[pid 5635] stat("/home/mwc/.gconf/apps/gnucash/dialogs/tip_of_the_day",
{st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 5635]
access("/home/mwc/.gconf/apps/gnucash/dialogs/tip_of_the_day", R_OK) = 0
[pid 5635] openat(AT_FDCWD,
"/home/mwc/.gconf/apps/gnucash/dialogs/tip_of_the_day",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 14
[pid 5635] getdents(14, /* 3 entries */, 32768) = 80
[pid 5635] getdents(14, /* 0 entries */, 32768) = 0
[pid 5635] close(14) = 0
[pid 5635]
stat("/home/mwc/.gconf/apps/gnucash/dialogs/tip_of_the_day/%gconf.xml",
{st_mode=S_IFREG|0600, st_size=480, ...}) = 0
[pid 5635]
open("/home/mwc/.gconf/apps/gnucash/dialogs/tip_of_the_day/%gconf.xml",
O_RDONLY) = 14
[pid 5635] fstat(14, {st_mode=S_IFREG|0600, st_size=480, ...}) = 0
[pid 5635]
open("/home/mwc/.gnc-migration-tmp/dialogs-tip_of_the_day.xml",
O_WRONLY|O_CREAT|O_TRUNC, 0600) = 15
[pid 5635] read(14, "<?xml version=\"1.0\"?>\n<gconf>\n\t<"..., 8192) = 480
[pid 5635] write(15, "<?xml version=\"1.0\"?>\n<gconf>\n\t<"..., 480) = 480
[pid 5635] read(14, "", 8192) = 0
[pid 5635] close(14) = 0
[pid 5635] close(15)
Mike
More information about the gnucash-user
mailing list