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);
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);
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");