Gnome2:...::Engine(3)
π Gnome2::GConf::Engine β the configuration engine, bestie edition π
okay so this is a page from the User Contributed Perl Documentation set, and it's literally all about Gnome2::GConf::Engine(3) β yes the man name has a lil Gnome2:...::Engine(3) thing going on, don't worry about it, we're here for the engine π«Ά
β¨ NAME β¨
Gnome2::GConf::Engine β A Configuration Engine π
β¨ SYNOPSIS β¨
(no synopsis, bestie. it's giving mysterious. it's giving "read the DESCRIPTION". π )
β¨ DESCRIPTION β¨
So Gnome2::GConf::Engine is the Perl binding for the "GConfEngine" object, periodt. And a GConfEngine? It's a configuration engine, which is basically a stack of config sources. Normally there's just one of these hanging out on the whole system, like the main character π.
Gnome2::GConf::Engine gives you a low-level interface for poking at GConf data β but ngl, you should normally be using a Gnome2::GConf::Client inside your code instead. The engine is the raw power; the client is the vibe. iykyk β¨
π SEE ALSO π
π¦ HIERARCHY π¦
Glib::Boxed
+----Gnome2::GConf::Engine
π METHODS π
list = $engine->all_dirs ($dir)
$dir(string)
This one hands you back an array with all the directories inside a given directory. slay π
list = $engine->all_entries ($dir)
$dir(string)
Same energy, different data: returns an array with all the entries of a given directory. π§
boolean = $engine->associate_schema ($key, $schema_key)
$key(string)$schema_key(string)
This associates a schema with a key, no cap.
$schema_key should have a schema (if $key stores a value) or a dir full of schemas (if $key stores a directory name). Pick the right one bestie, it matters π
changeset = $engine->change_set_from_current ($key, ...)
...(list) β list of keys to add to the changeset
Creates a Gnome2::GConf::ChangeSet from a list of keys inside the GConf database. iconic π₯
boolean = $engine->commit_change_set ($cs, $remove_committed)
(boolean, changeset) = $engine->commit_change_set ($cs, $remove_committed)
$cs(changeset)$remove_committed(boolean)
Commits a given Gnome2::GConf::ChangeSet. Here's the tea β β in scalar context, or if $remove_committed is FALSE, it returns a boolean value. Otherwise it returns the boolean value and the Gnome2::GConf::ChangeSet $cs, pruned of the successfully committed changes. two-for-one, we love to see it π
engine = Gnome2::GConf::Engine->get_default
Grabs the default Gnome2::GConf::Engine. the one, the only, the default π
boolean = $engine->dir_exists ($dir)
$dir(string)
engine or undef = Gnome2::GConf::Engine->get_for_address ($address)
$address(string)
Makes you a Gnome2::GConf::Engine for the address you passed in. β¨
engine or undef = Gnome2::GConf::Engine->get_for_addresses (...)
...(list)
Makes you a Gnome2::GConf::Engine for the addresses you passed in. plural besties unite πΈ
Since: gconf 2.7
value = $engine->get ($key)
$key(string)
Fetches and returns the Gnome2::GConf::Value bound to the given $key. π
Heads up! This overridesGlib::Object's"get", so if you want an object's properties you'll want to use"$object->get_property"instead. don't get caught out bestie π
boolean = $engine->set ($key, $value)
$key(string)$value(value)
Sets the Gnome2::GConf::Value bound to the given key. π
boolean = $engine->key_is_writable ($key)
$key(string)
integer = $engine->notify_add ($namespace_section, $func, $data=undef)
$namespace_section(string)$func(scalar)$data(scalar)
$engine->notify_remove ($cnxn_id)
$cnxn_id(integer)
$engine->remove_dir ($dir)
$dir(string)
changeset = $engine->reverse_change_set ($cs)
$cs(changeset)
Creates a change set that would revert the given change set, for the given Gnome2::GConf::Engine. it's giving undo button, but make it a data structure π
$engine->suggest_sync
just a lil suggestion to sync. no return value listed, it's mysterious like that π«
boolean = $engine->unset ($key)
$key(string)
Unsets the given key. bye bestie π
value = $engine->get_with_locale ($key, $locale)
$key(string)$locale(string)
Fetches and returns the Gnome2::GConf::Value bound to the given $key, but for a specific $locale. π
Locale only matters if you're expecting to get a schema, or if you don't even know what you're expecting and it might be a schema. Note that Gnome2::GConf::Engine::get automatically uses the current locale, which is normally what you actually want. so likeβ¦ use that one unless you have a reason fr fr π
value = $engine->get_without_default ($key)
$key(string)
Fetches the Gnome2::GConf::Value bound to the given key without returning the default value (the one specified inside the schema) if the key is unset. no defaults, only truth β¨
π SEE ALSO π
Gnome2::GConfGlib::Boxed
π COPYRIGHT π
Copyright (C) 2003-2006 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2::GConf for a full notice.
okay that's the whole page bestie, you ate that π«Ά this was perl v5.42.0, dated 2025-07-25, straight from the Gnome2:...::Engine(3) era β love that for us. go forth and configure π
β¨
π¦ where this page comes from
- fedora 43: perl-Gnome2-GConf 1.047-18.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms