From 0cecc08f0dc547f1431d0e1d4efe2fbb66d1f672 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Sat, 10 Oct 2009 07:47:01 +0800 Subject: [PATCH] use XDG floder. --- bus/registry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bus/registry.c b/bus/registry.c index 1820123f..05f2f520 100644 --- a/bus/registry.c +++ b/bus/registry.c @@ -154,7 +154,7 @@ bus_registry_load (BusRegistry *registry) g_free (dirname); - dirname = g_build_filename (g_get_home_dir (), ".ibus", "component", NULL); + dirname = g_build_filename (g_get_user_data_dir (), "ibus", "component", NULL); path = ibus_observed_path_new (dirname, TRUE); registry->observed_paths = g_list_append (registry->observed_paths, path); @@ -184,7 +184,7 @@ bus_registry_load_cache (BusRegistry *registry) XMLNode *node; GList *p; - filename = g_build_filename (g_get_home_dir (), ".ibus", "bus", "registry.xml", NULL); + filename = g_build_filename (g_get_user_cache_dir (), ".ibus", "bus", "registry.xml", NULL); node = ibus_xml_parse_file (filename); g_free (filename); @@ -259,7 +259,7 @@ bus_registry_save_cache (BusRegistry *registry) GList *p; FILE *pf; - cachedir = g_build_filename (g_get_home_dir (), ".ibus", "bus", NULL); + cachedir = g_build_filename (g_get_user_cache_dir (), "ibus", "bus", NULL); filename = g_build_filename (cachedir, "registry.xml", NULL); g_mkdir_with_parents (cachedir, 0775); pf = g_fopen (filename, "w"); -- 2.34.1