mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 04:36:21 +00:00
Move all filepath handling to files.c
This commit is contained in:
@@ -157,12 +157,10 @@ p_gpg_close(void)
|
||||
void
|
||||
p_gpg_on_connect(const char *const barejid)
|
||||
{
|
||||
gchar *data_home = files_get_xdg_data_home();
|
||||
GString *pubsfile = g_string_new(data_home);
|
||||
free(data_home);
|
||||
|
||||
char *pgpdir = files_get_data_path(DIR_PGP);
|
||||
GString *pubsfile = g_string_new(pgpdir);
|
||||
gchar *account_dir = str_replace(barejid, "@", "_at_");
|
||||
g_string_append(pubsfile, "/profanity/pgp/");
|
||||
g_string_append(pubsfile, "/");
|
||||
g_string_append(pubsfile, account_dir);
|
||||
free(account_dir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user