[Sugar-devel] gsettings in sugar-build

Walter Bender walter.bender at gmail.com
Wed Mar 19 12:15:15 EDT 2014


On Wed, Mar 19, 2014 at 12:00 PM, Daniel Narvaez <dwnarvaez at gmail.com> wrote:
> And would
>
> 2.5) osbuild run

Yes. Repeated osbuild runs don't adversly impact the profile. Just
check sugar makes a mess of things.

>
> work properly? If so, it sounds most likely like a sugar-build bug, check
> should use a completely separated profile.
>
>
> On Wednesday, 19 March 2014, Walter Bender <walter.bender at gmail.com> wrote:
>>
>> On Wed, Mar 19, 2014 at 11:43 AM, Daniel Narvaez <dwnarvaez at gmail.com>
>> wrote:
>> > Went back and reread your email... It's actually intentional that check
>> > starts from a clean state every time, why is that a problem? Also why do
>> > you
>> > think gsettings are not working properly in run?
>>
>> Maybe the problem is only in the cpsection code. But try the following:
>>
>> (1) osbuild run
>> (2) set nick in cpsection/aboutme
>> (3) osbuild check sugar
>> (4) osbuild run
>> (5) check user name
>>
>> The user name will be Walter Bender, which is the last name in the
>> series of set_nick calls in check.
>>
>> -walter
>> >
>> >
>> > On Wednesday, 19 March 2014, Walter Bender <walter.bender at gmail.com>
>> > wrote:
>> >>
>> >> On Wed, Mar 19, 2014 at 11:30 AM, Daniel Narvaez <dwnarvaez at gmail.com>
>> >> wrote:
>> >> > On a phone so I can't look very deeply into this right now... Maybe
>> >> > we
>> >> > are
>> >> > using the in memory gsettings backend... Can you check if dconf is
>> >> > installed
>> >> > inside the broot?
>> >> >
>> >> > ./osbuild shell
>> >> > rpm -qa | grep dconf
>> >>
>> >> dconf-0.18.0-2
>> >>
>> >> >
>> >> >
>> >> > On Wednesday, 19 March 2014, Walter Bender <walter.bender at gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> In trying to fix a problem with sugar/tests/test-user-profile.py I
>> >> >> have bumped into a strange situation regarding gsettings. Perhaps
>> >> >> you
>> >> >> can comment?
>> >> >>
>> >> >> The bug is that the test does not preserve/restore the original
>> >> >> settings, so I added a setup and teardown to do just that.
>> >> >>
>> >> >> But what I am finding is that reading from gsettings (or the model
>> >> >> in
>> >> >> cpsection/aboutme) doesn't give me the same values when using check
>> >> >> vs
>> >> >> run.
>> >> >>
>> >> >> Well, not exactly. I can set values in the control panel and they
>> >> >> are
>> >> >> preserved between sessions. But these values are not seen by check.
>> >> >> So
>> >> >> new default values are set. I suspect that run is getting its data
>> >> >> from gconf and that the gsettings are not actually being set
>> >> >> properly
>> >> >> in either check or run.
>> >> >>
>> >> >> Where are the gsettings stored by sugar-build? I cannot find them.
>> >> >>
>> >> >> thx.
>> >> >>
>> >> >> -walter
>> >> >>
>> >> >> --
>> >> >> Walter Bender
>> >> >> Sugar Labs
>> >> >> http://www.sugarlabs.org
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Daniel Narvaez
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Walter Bender
>> >> Sugar Labs
>> >> http://www.sugarlabs.org
>> >
>> >
>> >
>> > --
>> > Daniel Narvaez
>> >
>>
>>
>>
>> --
>> Walter Bender
>> Sugar Labs
>> http://www.sugarlabs.org
>
>
>
> --
> Daniel Narvaez
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list