Re: Setting gconf/dconf keys in kickstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux