Setting gconf/dconf keys in kickstart

Hugh Brown hbrown at divms.uiowa.edu
Wed Aug 3 15:20:36 UTC 2011



On 08/03/2011 10:08 AM, Patrick Lists wrote:
> On 08/02/2011 04:40 PM, Hugh Brown wrote:
>> I've done similar things in a script that gets called from %post and
>> they were successfully set.
>
> As previously reported your script worked like a charm. Thanks again.
> I'm still struggling with one thing: to turn off that "klunk" sound when
> GDM starts. the lines below directly in the %post section all did not work.
>
> sudo -u gdm gconftool-2 --direct
> --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool
> /desktop/gnome/sound/event_sounds false
>
> sudo -u gdm gconftool-2 --direct
> --config-source=xml:readwrite:/etc/gconf/gconf.xml.mandatory -s -t bool
> /desktop/gnome/sound/event_sounds false
>

The gdm user doesn't have write access to /etc/gconf, you can probably 
leave off the --direct --config-source...

sudo -u gdm gconftool-2 -s -t bool /desktop/gnome/sound/event_sounds false

should do it.


Hugh




More information about the Kickstart-list mailing list