about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-10-11 16:39:55 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-10-11 16:39:55 +0200
commita86e86cce0a2aa941d93a39f86d091d581d5fc7c (patch)
treeb699db08d3f33c315940d27561a246a49e356bb0 /src
parent0df3655f57411a1bcec2948f441818aed3aaa0f7 (diff)
downloadprofani-tty-a86e86cce0a2aa941d93a39f86d091d581d5fc7c.tar.gz
Fix first start detection
Only display help message on first start.
This is a fixup for:
https://github.com/profanity-im/profanity/commit/27a5c9d287e856bd774988b4066667db54b65de7
Diffstat (limited to 'src')
-rw-r--r--src/ui/console.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 95a70a30..822e6d3e 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -395,8 +395,8 @@ cons_show_incoming_private_message(const char* const nick, const char* const roo
 static void
 _cons_welcome_first_start(void)
 {
-    gchar* prefs_loc = files_get_config_path(FILE_PROFANITY_IDENTIFIER);
-    if (!g_file_test(prefs_loc, G_FILE_TEST_EXISTS)) {
+    gchar* ident_loc = files_get_data_path(FILE_PROFANITY_IDENTIFIER);
+    if (!g_file_test(ident_loc, G_FILE_TEST_EXISTS)) {
         ProfWin* console = wins_get_console();
         win_println(console, THEME_DEFAULT, "-", "This seems to be your first time starting Profanity.");
         win_println(console, THEME_DEFAULT, "-", "");
@@ -410,7 +410,7 @@ _cons_welcome_first_start(void)
         win_println(console, THEME_DEFAULT, "-", "/register myjid myserver.org");
         win_println(console, THEME_DEFAULT, "-", "");
     }
-    g_free(prefs_loc);
+    g_free(ident_loc);
 }
 
 void