From 09feef89eea03527c9c81b8d15fe8c1474942209 Mon Sep 17 00:00:00 2001 From: Yacine Hmito Date: Tue, 1 Dec 2015 00:38:23 +0100 Subject: Can customize config fallback directory CMake takes a `FALLBACK_CONFIG_DIR` flag which is the directory where the standard configuration file `config` is copied at installation. If loading from typical configuration directories fails, sway loads FALLBACK_CONFIG_DIR/config (/etc/sway/config by default). --- sway/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway') diff --git a/sway/config.c b/sway/config.c index 21507c59..dac3e8f8 100644 --- a/sway/config.c +++ b/sway/config.c @@ -136,7 +136,7 @@ static char *get_config_path(void) { "$XDG_CONFIG_HOME/sway/config", "$HOME/.i3/config", "$XDG_CONFIG_HOME/i3/config", - "/etc/sway/config", + FALLBACK_CONFIG_DIR "config", "/etc/i3/config", }; -- cgit v1.2.3