mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Simplify and merge {config,theme}-dir.c
This commit is contained in:
parent
fc6fca6945
commit
f003abf608
20 changed files with 181 additions and 163 deletions
6
tools/dirs/Makefile
Normal file
6
tools/dirs/Makefile
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
CFLAGS += -g -Wall -I../../include
|
||||
CFLAGS += `pkg-config --cflags glib-2.0`
|
||||
LDFLAGS += `pkg-config --libs glib-2.0`
|
||||
|
||||
all:
|
||||
$(CC) $(CFLAGS) -o dir-list dir-list.c ../../src/common/dir.c $(LDFLAGS)
|
||||
BIN
tools/dirs/dir-list
Executable file
BIN
tools/dirs/dir-list
Executable file
Binary file not shown.
12
tools/dirs/dir-list.c
Normal file
12
tools/dirs/dir-list.c
Normal 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"));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue