diff options
author | Gary Kramlich <grim@reaperworld.com> | 2019-10-09 02:02:56 +0000 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2019-10-09 02:02:56 +0000 |
commit | 7c10f34e5934fb91343628618d6f4fd4194ad0ec (patch) | |
tree | 69757b56dbd82dc29e99d83820d3e10e01b16ba4 /pidgin/plugins | |
parent | 822194758febff27084e796f7c4497ca7688fa0f (diff) | |
parent | 9cb77d046f7ae06994afb76698d5635cb7707d9d (diff) | |
download | pidgin-7c10f34e5934fb91343628618d6f4fd4194ad0ec.tar.gz |
Merged in default (pull request #590)
Move more stuff to XDG directories
Approved-by: Gary Kramlich
Diffstat (limited to 'pidgin/plugins')
-rw-r--r-- | pidgin/plugins/cap/cap.c | 2 | ||||
-rw-r--r-- | pidgin/plugins/spellchk.c | 4 |
2 files changed, 3 insertions, 3 deletions
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); 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); } |