diff options
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | sway/config.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e1e1dde..68dd7fa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.1.0) | |||
2 | 2 | ||
3 | project(sway C) | 3 | project(sway C) |
4 | 4 | ||
5 | set(FALLBACK_CONFIG_DIR "/etc/sway/") | 5 | set(FALLBACK_CONFIG_DIR "/etc/sway" CACHE PATH |
6 | "Fallback config directory defaults to /etc/sway") | ||
6 | add_definitions('-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\"') | 7 | add_definitions('-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\"') |
7 | 8 | ||
8 | set(CMAKE_C_FLAGS "-g") | 9 | set(CMAKE_C_FLAGS "-g") |
diff --git a/sway/config.c b/sway/config.c index dac3e8f8..6a1d172b 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 | FALLBACK_CONFIG_DIR "config", | 139 | FALLBACK_CONFIG_DIR "/config", |
140 | "/etc/i3/config", | 140 | "/etc/i3/config", |
141 | }; | 141 | }; |
142 | 142 | ||