diff options
author | Daiki Ueno <ueno@unixuser.org> | 2013-07-12 18:39:54 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@unixuser.org> | 2013-07-12 18:39:54 +0900 |
commit | 632a5c13072312015226c408ddb3d4eb478abe6f (patch) | |
tree | 32bb1fc3c040b9e75d2e07b06fc2bd1182ab2d63 /tools | |
parent | 9037ffe0f3ab419554903de6f12d00ee74f2f3ff (diff) |
registry: use binary format instead of XML for cache
Currently the registry cache is in the XML format, that may cause
unnecessary parsing overhead on ibus-daemon startup. This patch
changes the format to GVariant based binary representation.
BUG=
R=takao.fujiwara1@gmail.com
Review URL: https://codereview.appspot.com/9963043
Diffstat (limited to 'tools')
-rw-r--r-- | tools/main.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/main.vala b/tools/main.vala index b3589745..f3959af5 100644 --- a/tools/main.vala +++ b/tools/main.vala @@ -30,7 +30,6 @@ class EngineList { } IBus.Bus? get_bus() { - IBus.init(); var bus = new IBus.Bus(); if (!bus.is_connected ()) return null; @@ -310,6 +309,8 @@ public int main(string[] argv) { GLib.Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.GLIB_LOCALE_DIR); GLib.Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8"); + IBus.init(); + program_name = Path.get_basename(argv[0]); if (argv.length < 2) { print_usage(stderr); |