Simplify and merge {config,theme}-dir.c

This commit is contained in:
Johan Malm 2020-08-10 17:24:17 +01:00
parent fc6fca6945
commit f003abf608
20 changed files with 181 additions and 163 deletions

12
tools/dirs/dir-list.c Normal file
View file

@ -0,0 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
#include "common/dir.h"
int main()
{
setenv("LABWC_DEBUG_DIR_CONFIG_AND_THEME", "1", 1);
setenv("XDG_CONFIG_HOME", "/a:/bbb:/ccccc:/etc/foo", 1);
printf("%s\n", config_dir());
printf("%s\n", theme_dir("Numix"));
}