[maemo-developers] [Fremantle] Creating gconf keys upon installation

From: Thomas Wälti twaelti at gmail.com
Date: Tue Jan 12 15:20:30 EET 2010
Thanks for the explanation, saw your post in the other list only after
posting mine and this made me unsure about the best way :-)
Perhaps someone with the necessary permissions can add something about this to
http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Generic_Platform_Components/Application_Preferences-Gconf

I also found some additional information at
http://projects.gnome.org/gconf/ in the "Schema files" and
"Application developer information" section.
-Tom


2010/1/12 Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>:
> On Tue, 2010-01-12 at 11:02 +0100, ext Thomas Wälti wrote:
>> Just add some gconftool-2 commands to your postinstall script.
>> (e.g. gconftool-2 --set /path/to/your/key --type string "myvalue")
>>
>
> This is not a good way, since the Gconf database could be restored from
> an old backup (or a power failure could occur) and you would lose these
> values. The better way is to use a Gconf schema with default values,
> because that stays even if the values are unset.
>
> -Kimmo
>
>> -Tom
>>
>>
>> On Tue, Jan 12, 2010 at 10:02, Salvatore Iovene <salvatore at iovene.com> wrote:
>> > Hello,
>> > can anyone address me to the simplest way to create some gconf keys upon
>> > a programs installation?
>> >
>> > Thanks in advance,
>> >  Salvatore.
More information about the maemo-developers mailing list