Fwd: gnucash environment problem



Does anyone know if this is expected behavior for gconf, or if there is some way in which a change to the gconf store can be forced out, so that a local shell can "see" the changes which may have been made via an X-11 forwarded session?

Thanks 

---------- Forwarded message ----------
From: Colin Law <clanlaw googlemail com>
Date: Wed, Jan 9, 2013 at 12:38 PM
Subject: Re: gnucash environment problem
To: rclar <rclar in dc gmail com>
Cc: Derek Atkins <warlord mit edu>, "gnucash-user gnucash org" <gnucash-user gnucash org>


On 9 January 2013 17:02, rclar <rclar in dc gmail com> wrote:
> Ok, but if that was the case, shouldn't I expect consistent behaviour, and
> be presented with an empty and new gnucash instance when I first start from
> the ssh session? It would seem that gnucash reads gconf just fine, but
> creates a "shadow" instance when it is writing from a ssh shell.

It is a caching issue in gconf, to demonstrate
Run gnucash in an ssh -X terminal and do Save As to a new file.
Close gnucash
In the ssh session run gconf-editor and in apps/gnucash/history will
be seen the new file.
Run gconf-editor directly on the remote machine and it will be seen
that apps/gnucash/history does not include the new file.
Open gnucash and it will not pick up the new file.
Reboot the machine (in fact logout/in will likely do, and no doubt
there is a way of restarting gconf server)
Run gconf-editor again and now the new file appears in the history,
and running gnucash will pick up the file as expected.

So the problem is, as expected, nothing to do with gnucash.  It is
that changing gconf settings remotely via X forwarding is not seen by
the gconf server running on the remote machine unitl the server is
restarted.

Colin


>
> I also learned that gconf is now deprecated and unsupported with gsettings
> being the replacement. Does that migration need to be put on a wish list
> somewhere?
>
> On Jan 9, 2013 11:39 AM, "Derek Atkins" <warlord mit edu> wrote:
>>
>> Hi,
>>
>> rclar <rclar in dc gmail com> writes:
>>
>> > On Jan 8, 2013 12:03 PM, "Colin Law" <clanlaw googlemail com> wrote:
>> >
>> >> That is interesting, I see the same issue (using xml format) running
>> >> Ubuntu (12.10 on the local machine, 12.04 on the remote).  The
>> >> saved-as file does not even appear in the recent files list when GC is
>> >> run directly on the remote machine (after running remotely), but it
>> >> does appear in the list and is opened automatically if GC is run again
>> >> using ssh -X.  Presumably it is an issue with gconf and X forwarding.
>> >
>> > Thanks for reproducing it. I'll see what I can dig up around gconf to
>> > report a bug.
>>
>> I am not convinced this is a bug in gconf.
>>
>> When you ssh to and X-forward back from another host to run a process,
>> there is nothing that says that you have a running gnome/gconf
>> environment on that remote system into which you could store gconf data.
>> So, arguably, it is correct behavior to use the configuration on your
>> visual desktop instead of the configuration on the remote server (which
>> may not exist).
>>
>> > Please remember to CC this list on all your replies.
>> > You can do this by using Reply-To-List or Reply-All.
>>
>> -derek
>>
>> --
>>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>>        Member, MIT Student Information Processing Board  (SIPB)
>>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>>        warlord MIT EDU                        PGP key available



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]