diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/CMakeLists.txt | 2 | ||||
-rw-r--r-- | sway/config.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sway/CMakeLists.txt b/sway/CMakeLists.txt index 894163b8..259e9ab3 100644 --- a/sway/CMakeLists.txt +++ b/sway/CMakeLists.txt | |||
@@ -42,7 +42,7 @@ install( | |||
42 | ) | 42 | ) |
43 | install( | 43 | install( |
44 | FILES ${PROJECT_SOURCE_DIR}/config | 44 | FILES ${PROJECT_SOURCE_DIR}/config |
45 | DESTINATION ${FALLBACK_CONFIG_DIR} | 45 | DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sway/ |
46 | COMPONENT configuration | 46 | COMPONENT configuration |
47 | ) | 47 | ) |
48 | 48 | ||
diff --git a/sway/config.c b/sway/config.c index 853a7111..1973de02 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -153,8 +153,8 @@ static char *get_config_path(void) { | |||
153 | "$XDG_CONFIG_HOME/sway/config", | 153 | "$XDG_CONFIG_HOME/sway/config", |
154 | "$HOME/.i3/config", | 154 | "$HOME/.i3/config", |
155 | "$XDG_CONFIG_HOME/i3/config", | 155 | "$XDG_CONFIG_HOME/i3/config", |
156 | FALLBACK_CONFIG_DIR "/config", | 156 | "${CMAKE_INSTALL_FULL_SYSCONFDIR}/sway/config", |
157 | "/etc/i3/config", | 157 | "${CMAKE_INSTALL_FULL_SYSCONFDIR}/i3/config", |
158 | }; | 158 | }; |
159 | 159 | ||
160 | if (!getenv("XDG_CONFIG_HOME")) { | 160 | if (!getenv("XDG_CONFIG_HOME")) { |