[dconf] cli: add undocumented 'dconf blame' option
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] cli: add undocumented 'dconf blame' option
- Date: Wed, 7 Mar 2012 17:24:28 +0000 (UTC)
commit d89bf3b766d97f79eb09e9b5c70a8cb22f1252c2
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Mar 7 12:23:48 2012 -0500
cli: add undocumented 'dconf blame' option
bin/dconf.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/bin/dconf.vala b/bin/dconf.vala
index c82dba1..d7840ec 100644
--- a/bin/dconf.vala
+++ b/bin/dconf.vala
@@ -230,6 +230,13 @@ void dconf_watch (string?[] args) throws Error {
new MainLoop (null, false).run ();
}
+void dconf_blame (string?[] args) throws Error {
+ var connection = Bus.get_sync (BusType.SESSION, null);
+ var reply = connection.call_sync ("ca.desrt.dconf", "/ca/desrt/dconf/Writer", "ca.desrt.dconf.WriterInfo", "Blame",
+ null, new VariantType ("(s)"), DBusCallFlags.NONE, -1, null);
+ print ("%s", reply.get_child_value (0).get_string (null));
+}
+
void dconf_complete (string[] args) throws Error {
var suffix = args[2];
var path = args[3];
@@ -286,6 +293,7 @@ int main (string[] args) {
CommandMapping ("watch", dconf_watch),
CommandMapping ("dump", dconf_dump),
CommandMapping ("load", dconf_load),
+ CommandMapping ("blame", dconf_blame),
CommandMapping ("_complete", dconf_complete)
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]