summaryrefslogtreecommitdiff
path: root/apps/filetypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r--apps/filetypes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 67a4c176fb..28a2da65bb 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -182,14 +182,15 @@ static void read_config(const char* config_file);
182 * load a colors file from a theme with: 182 * load a colors file from a theme with:
183 * filetype colours: filename.colours */ 183 * filetype colours: filename.colours */
184void read_color_theme_file(void) { 184void read_color_theme_file(void) {
185 char buffer[MAX_PATH]; 185 char buffer[MAX_PATH], dir[MAX_PATH];
186 int fd; 186 int fd;
187 char *ext, *color; 187 char *ext, *color;
188 int i; 188 int i;
189 for (i = 0; i < MAX_FILETYPES+1; i++) { 189 for (i = 0; i < MAX_FILETYPES+1; i++) {
190 custom_colors[i] = -1; 190 custom_colors[i] = -1;
191 } 191 }
192 snprintf(buffer, MAX_PATH, "%s/%s.colours", THEME_DIR, 192 snprintf(buffer, MAX_PATH, "%s/%s.colours",
193 get_user_file_path(THEME_DIR, 0, dir, sizeof(dir)),
193 global_settings.colors_file); 194 global_settings.colors_file);
194 fd = open(buffer, O_RDONLY); 195 fd = open(buffer, O_RDONLY);
195 if (fd < 0) 196 if (fd < 0)