about summary refs log tree commit diff stats
path: root/src/files.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-12-02 01:29:42 +0000
committerJames Booth <boothj5@gmail.com>2012-12-02 01:29:42 +0000
commit6826a66f8506d763d30bcf8e54147efbf5e8050c (patch)
tree8179299e486473f12312123815d37dd5b6c80528 /src/files.c
parent30e4786180047d6b8fc97ee3c4e18b62f8b0d6b0 (diff)
downloadprofani-tty-6826a66f8506d763d30bcf8e54147efbf5e8050c.tar.gz
Moved logins to accounts module
Diffstat (limited to 'src/files.c')
-rw-r--r--src/files.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/files.c b/src/files.c
index 96480b3d..b98cfbee 100644
--- a/src/files.c
+++ b/src/files.c
@@ -87,6 +87,19 @@ files_get_log_file(void)
 }
 
 gchar *
+files_get_accounts_file(void)
+{
+    gchar *xdg_data = xdg_get_data_home();
+    GString *logfile = g_string_new(xdg_data);
+    g_string_append(logfile, "/profanity/accounts");
+    gchar *result = strdup(logfile->str);
+    g_free(xdg_data);
+    g_string_free(logfile, TRUE);
+
+    return result;
+}
+
+gchar *
 files_get_themes_dir(void)
 {
     gchar *xdg_config = xdg_get_config_home();