I’ve got the basic idea of Ruby/GConf2 down, but I can’t see an
obvious way to manipulate the mandatory and defaults settings. Am I
missing something obvious?
I’ve got the basic idea of Ruby/GConf2 down, but I can’t see an
obvious way to manipulate the mandatory and defaults settings. Am I
missing something obvious?
mandatory_engine =
GConf::Engine.new(“xml:readonly:/etc/gconf/gconf.xml.mandatory”)
mandatory_client = GConf::Client.get_for_engine(mandatory_engine)
mandatory_client.all_entries(“/”).each do |entry|
puts entry.key + " : " + entry.value
end
Create a mandatory key before you try the program, and restart gconfd.
Note I’m opening the DB readonly, you would want xml:readwrite if you
want to write to it.
By the way slightly off topic, but GConf will be replaced with another
*Conf I think? I wonder how difficult it would be for ruby-gnome to keep
up with that (if what I wrote is true, that is)
By the way slightly off topic, but GConf will be replaced with another
*Conf I think? I wonder how difficult it would be for ruby-gnome to keep
up with that (if what I wrote is true, that is)
By the way slightly off topic, but GConf will be replaced with another
*Conf I think? I wonder how difficult it would be for ruby-gnome to keep
up with that (if what I wrote is true, that is)
I never heard of a gconf replacement.
Just for the record, it seems Gnome is indeed switching to a new
settings engine.
It’s still experimental though.