Re: Setting gconf/dconf keys in kickstart

Patrick Lists <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>
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

This script called from %post makes the %post session not finish so I 
suspect something does not return control but I don't know why and am 
out of my league here.

#!/bin/sh
su - gdm -s /bin/bash --command='
for line in `dbus-launch`; do export "$line"; done;
/usr/libexec/dconf-service &
GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.sound 
event-sounds false;
exit' 2> /dev/null

Any hints how to silence GDM would be most appreciated.

Thanks and regards,
Patrick
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.