diff options
author | 2015-12-01 00:38:23 +0100 | |
---|---|---|
committer | 2015-12-01 01:07:48 +0100 | |
commit | 09feef89eea03527c9c81b8d15fe8c1474942209 (patch) | |
tree | 4a9ecf5416f6e109f60aa6834eec43cba5267d5d /sway | |
parent | Add framework for switching command sets (diff) | |
download | sway-09feef89eea03527c9c81b8d15fe8c1474942209.tar.gz sway-09feef89eea03527c9c81b8d15fe8c1474942209.tar.zst sway-09feef89eea03527c9c81b8d15fe8c1474942209.zip |
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).
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
136 | "$XDG_CONFIG_HOME/sway/config", | 136 | "$XDG_CONFIG_HOME/sway/config", |
137 | "$HOME/.i3/config", | 137 | "$HOME/.i3/config", |
138 | "$XDG_CONFIG_HOME/i3/config", | 138 | "$XDG_CONFIG_HOME/i3/config", |
139 | "/etc/sway/config", | 139 | FALLBACK_CONFIG_DIR "config", |
140 | "/etc/i3/config", | 140 | "/etc/i3/config", |
141 | }; | 141 | }; |
142 | 142 | ||