Re: Setting gconf/dconf keys in kickstart

Hugh Brown <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.