summaryrefslogtreecommitdiff
path: root/gio/gsettings-tool.c
AgeCommit message (Collapse)AuthorFilesLines
2014-01-31Updated FSF's addressDaniel Mustieles1-3/+1
2013-12-22gsettings tool: print GVariant errors in contextRyan Lortie1-1/+4
Use g_variant_parse_error_print_context() to format the error message from the GVariant parser. https://bugzilla.gnome.org/show_bug.cgi?id=715028
2013-11-27gsettings tool: stop using GMainLoopRyan Lortie1-1/+2
Just iterate directly.
2013-11-27gsettings tool: fix some sed damageRyan Lortie1-3/+5
The previous patch to simplify the GSettings commandline tool by making more use of global variables went a bit too far and broke 'gsettings monitor' when used without a specific key. Fix that up again.
2013-10-28gsettings(1): stop using deprecated APIsRyan Lortie1-64/+41
Stop using the recently-deprecated GSettings APIs. Use the GSettingsSchema-based APIs instead. This fixes a number of bugs and also a net reduction of code. In particular, list-schemas will now work in context of a given --schemadir argument. https://bugzilla.gnome.org/show_bug.cgi?id=695558
2013-10-28gsettings(1): use global variablesRyan Lortie1-97/+77
The number of arguments passed to each function is about to increase, so just use global variables instead. This is a commandline tool, after all... https://bugzilla.gnome.org/show_bug.cgi?id=695558
2013-10-24gsettings-tool: Add --version into general usageJiro Matsuzawa1-0/+1
https://bugzilla.gnome.org/show_bug.cgi?id=707002
2013-07-19gsettings tool: report failure to writeMatthias Clasen1-1/+5
If a key is locked down, we should report an error if we fail to write it. https://bugzilla.gnome.org/show_bug.cgi?id=704424
2013-04-03gsettings: implemented --version commandDavid Gomes1-0/+18
This was discussed in https://bugzilla.gnome.org/show_bug.cgi?id=697131
2013-03-09gsettings-tool: Make a string translatableJiro Matsuzawa1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=695425
2012-11-15win32: prototype _glib_get_dll_directory() and _glib_get_locale_dir()Dan Winship1-1/+4
Rather than using "extern" declarations of these win32 functions everywhere they're needed, just prototype them in glib-private.h. (Which also fixes the fact that they weren't prototyped in the files where they're defined.) https://bugzilla.gnome.org/show_bug.cgi?id=688109
2012-10-16Remove g_type_init() callsRyan Lortie1-2/+0
Very many testcases, some GLib tools (resource compiler, etc) and GApplication were calling g_type_init(). Remove those uses, as they are no longer required. https://bugzilla.gnome.org/show_bug.cgi?id=686161
2012-08-28gsettings-tool: make list-recursively really recurseDaiki Ueno1-8/+3
https://bugzilla.gnome.org/show_bug.cgi?id=682586
2012-02-02gsettings tool: fix a memory errorRyan Lortie1-1/+3
8852d4e9a08e7fbc9df7fb99a54b112f5049ee19 introduced a memory error by taking the type of a GVariant, freeing the GVariant and using the type after the free. This delays the free until after we've used the type. https://bugzilla.gnome.org/show_bug.cgi?id=669253
2012-01-20Fix a refcounting errorMatthias Clasen1-2/+1
'new' is created floating, therefore it is consumed by g_settings_set, and unreffing it after that call is not right.
2011-12-19gsettings-tool: allow specifying custom schema dirsGiovanni Campagna1-75/+104
It happens that one wants to customize settings for plugins or shell extensions, that installing schemas in nonstandard locations. This patch adds the --schemadir option to gsettings, and ensure that the appropriate schema is found. https://bugzilla.gnome.org/show_bug.cgi?id=666415
2011-06-07Update gsettings utilities in GIOChun-wei Fan1-1/+6
Avoid C99-style variable declaration
2011-05-23Revert "gsettings-tool: warn if setting a value fails"Ray Strode1-11/+3
This reverts commit ea57feff96f13bbd4d03a76040a4ddfad2677310. It makes the gsettings tool fail any time it tries to set a key to a value, that the key already has. https://bugzilla.gnome.org/show_bug.cgi?id=641768
2011-05-18Whitespace fixesRyan Lortie1-9/+9
2011-05-17Fix gsettings tool string handlingRyan Lortie1-12/+24
There are some bugs caused by the way that gsettings-tool currently attempts to help the user when they leave the quotes off of a string value that they are setting. Simplify the code to make it more robust and add some comments about why it should be done this way. https://bugzilla.gnome.org/show_bug.cgi?id=649915
2011-04-12gsettings-tool fixes: Add missing _apply(), add unset-recursively to man pageColin Walters1-0/+1
2011-04-12gsettings: Implement reset-recursivelyColin Walters1-0/+57
Motivation was the ability to: $ gsettings reset-recursively org.gnome.gnome-panel https://bugzilla.gnome.org/show_bug.cgi?id=647579
2011-04-09gsettings-tool: warn if setting a value failsDan Winship1-3/+11
eg, if the dconf backend cannot connect to dbus https://bugzilla.gnome.org/show_bug.cgi?id=641768
2011-02-23Allow to list keys in all schemasMatthias Clasen1-19/+35
Make the schema argument to gsettings list-recursively optional. This allows to search for not exactly known keys by going gsettings list-recursively | grep 'font'
2011-02-12Fix some problems with message handlingMatthias Clasen1-3/+16
g_printerr() doesn't append a newline, so we have to consistently do it everywhere. Also, we cannot call gettext on "", ever.
2011-01-21Update help and docs for gsettings cmdline toolMatthias Clasen1-9/+19
The man page had gotten quite out of sync.
2010-12-12Better error reporting for g_variant_parse()Christian Persch1-1/+3
Add error codes, and use them when setting the GError. Bug #634583.
2010-10-31Be more careful about overwriting errorsMatthias Clasen1-3/+4
When trying to parse again, we don't want to overwrite the exiting error.
2010-10-30gsettings-tool: Support completion for enum valuesMatthias Clasen1-0/+17
https://bugzilla.gnome.org/show_bug.cgi?id=631264
2010-10-30Add a command to list keys and values recursivelyMatthias Clasen1-0/+66
This is similar to gconftool-2 -R, which is very handy for collecting information for bug reports, etc. It is now possible to say gsettings list-recursively org.foo.bar, and this will produce a list of schemas, keys and values for org.foo.bar and all its child and grandchild schemata, recursively. https://bugzilla.gnome.org/show_bug.cgi?id=632571
2010-10-29Make gsettings-tool translatable againMatthias Clasen1-43/+49
This regression was caused by the recent rewrite.
2010-10-04gsettings-tool: Add 'range' subcommandRyan Lortie1-0/+63
Provides access to the g_settings_get_range() functionality, converting its return value to something that's reasonable for printing at the console and potentially parseable. The format may change. Bug #631264.
2010-10-04gsettings-tool: implement range-checkingRyan Lortie1-0/+7
Prevent assertion messages from spewing forth and also ensure that we exit with an error status in the event that the value was out of range. Bug #631264.
2010-10-03gsettings-tool: RewriteRyan Lortie1-679/+368
Rewrite the GSettings tool. Improvements/changes: - simplify the code by performing common actions (like creating a schema) in only one place instead of one per-command - new features (list schemas, list keys, monitor multiple, etc) - factor-out bash completion and implement in shellscript - input validation: should never abort due to invalid inputs Still to do: - proper error checking for ranges/choices - support for querying range/choice information - bash completion support for enums Closes bug #629289, possibly among others.
2010-09-22Add translator comments for command parameter translationClaude Paroz1-0/+2
2010-09-09split GSettings.list_items => list_{children,keys}Ryan Lortie1-10/+8
This is an incompatible public API/ABI change.
2010-07-22Cleanup the GSettingsBackend APIRyan Lortie1-1/+101
This is a substantial ABI break. Rebuild dconf.
2010-06-30g_settings_list_keys() -> _list_items()Ryan Lortie1-2/+2
This function returns children as well.
2010-06-27Filter out child schema entries when listing keysMatthias Clasen1-3/+7
2010-06-27Implement bash completion for gsettingsMatthias Clasen1-79/+419
2010-06-27GSettings: Don't free value before using its typeRyan Lortie1-4/+4
Fix a bug where the type from g_variant_get_type() was used after freeing the variant. This works for base types (since they are cached and live forever) but not for arrays (where the bug was first seen).
2010-06-19Fix gsettings tool crash, part 2Milan Bouchet-Valat1-2/+8
Same as previous commit, but for two other functions it missed.
2010-06-19Fix gsettings tool crashMilan Bouchet-Valat1-2/+8
When no path is provided for the schema, we have call g_settings_new() instead of g_settings_new_with_path() passing a NULL path. This was crashing the tool on start since an assertion was recently added to g_settings_new_with_path() to refuse NULL.
2010-06-17Make g_settings_sync() a proper prototype.Ryan Lortie1-1/+1
2010-06-10Add g_settings_sync() and use itRyan Lortie1-18/+1
2010-05-24GDBusConnection.call(): add 'reply_type' argumentRyan Lortie1-1/+1
This allows the caller to specify the reply type that they are expecting for this call. If the reply comes back with the wrong type, GDBus will generate an appropriate error internally. - add a GVariantType * argument to g_dbus_connection_call() and _call_sync(). - move the internal API for computing message types from introspection data to be based on GVariantType instead of strings. Update users of this code. - have GDBusProxy pass this calculated GVariantType into g_dbus_connection_call(). Remove the checks done in GDBusProxy. - Update other users of the code (test cases, gdbus-tool, GSettings tool, etc). In some cases, remove redundant checks; in some other cases, we are fixing bugs because no checking was done where it should have been. Closes bug #619391.
2010-05-17GSettings tool: work-around GDBus issueRyan Lortie1-0/+18
There is currently no way (near as I can tell) to ensure that a message has been sent when using GDBus. If we exit() before we are sure, then it is very possible that the message isn't sent at all. This behaviour was observed when using the GSettings commandline tool with dconf. A quick and dirty workaround for now.
2010-04-22Rename gsettings-tool to gsettingsMatthias Clasen1-97/+313
And make it verb-based.
2010-04-20Add documentation and translation for gsettings-toolMatthias Clasen1-16/+17
2010-04-20Add a minimal commandline utility to poke GSettingsMatthias Clasen1-0/+169