From a50e6e4c500e3080b8df7ec14c7e42741477a423 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Tue, 14 May 2013 09:48:26 -0700 Subject: config-parser: Honor XDG_CONFIG_DIRS This set of changes adds support for searching for a given config file in the directories listed in $XDG_CONFIG_DIRS if it wasn't found in $XDG_CONFIG_HOME or ~/.config. This allows packages to install custom config files in /etc/xdg/weston, for example, thus allowing them to avoid dealing with home directories. To avoid a TOCTOU race the config file is actually open()ed during the search. Its file descriptor is returned and stored in the compositor for later use when performing subsequent config file parses. Signed-off-by: Ossama Othman --- tests/weston-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/weston-test.c b/tests/weston-test.c index 612841b5..b629c86c 100644 --- a/tests/weston-test.c +++ b/tests/weston-test.c @@ -225,7 +225,7 @@ idle_launch_client(void *data) WL_EXPORT int module_init(struct weston_compositor *ec, - int *argc, char *argv[], const char *config_file) + int *argc, char *argv[]) { struct weston_test *test; struct wl_event_loop *loop; -- cgit v1.2.3