From 08953ea734af16dbb7b38072338726f51f6aedfb Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 28 Sep 2019 04:34:57 -0400 Subject: Move some Pidgin things to XDG directories. --- pidgin/plugins/spellchk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pidgin/plugins') diff --git a/pidgin/plugins/spellchk.c b/pidgin/plugins/spellchk.c index ec438cd487..39fbb2b681 100644 --- a/pidgin/plugins/spellchk.c +++ b/pidgin/plugins/spellchk.c @@ -1785,7 +1785,7 @@ static void load_conf(void) gboolean complete = TRUE; gboolean case_sensitive = FALSE; - buf = g_build_filename(purple_user_dir(), "dict", NULL); + buf = g_build_filename(purple_config_dir(), "dict", NULL); if (!(g_file_get_contents(buf, &ibuf, &size, NULL) && ibuf)) { ibuf = g_strdup(defaultconf); size = strlen(defaultconf); @@ -2080,7 +2080,7 @@ static void save_list() } while (gtk_tree_model_iter_next(GTK_TREE_MODEL(model), &iter)); } - purple_util_write_data_to_file("dict", data->str, -1); + purple_util_write_data_to_config_file("dict", data->str, -1); g_string_free(data, TRUE); } -- cgit v1.2.1 From f01c19387c74fad79c8bd914b277fe5525d99f0f Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 8 Oct 2019 21:38:57 -0400 Subject: Move cap plugin database to XDG data directory. --- pidgin/plugins/cap/cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pidgin/plugins') diff --git a/pidgin/plugins/cap/cap.c b/pidgin/plugins/cap/cap.c index feb585f9e6..fdbacd2d86 100644 --- a/pidgin/plugins/cap/cap.c +++ b/pidgin/plugins/cap/cap.c @@ -571,7 +571,7 @@ static gboolean create_database_connection() { return TRUE; /* build the path */ - path = g_build_filename(purple_user_dir(), "cap.db", (gchar *)NULL); + path = g_build_filename(purple_data_dir(), "cap.db", (gchar *)NULL); /* make database connection here */ rc = sqlite3_open(path, &_db); -- cgit v1.2.1