about summary refs log tree commit diff stats
path: root/src/ui/tray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tray.c')
-rw-r--r--src/ui/tray.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/tray.c b/src/ui/tray.c
index ab0d26e0..374eefb7 100644
--- a/src/ui/tray.c
+++ b/src/ui/tray.c
@@ -79,10 +79,8 @@ _get_icons(void)
 
 #endif /* ICONS_PATH */
 
-    gchar *xdg_config = files_get_xdg_config_home();
-    icons_dir = g_string_new(xdg_config);
-    g_free(xdg_config);
-    g_string_append(icons_dir, "/profanity/icons");
+    char *icons_dir_s = files_get_config_path(DIR_ICONS);
+    icons_dir = g_string_new(icons_dir_s);
     GError *err = NULL;
     if (!g_file_test(icons_dir->str, G_FILE_TEST_IS_DIR)) {
         return;