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( ) install( FILES ${PROJECT_SOURCE_DIR}/config - DESTINATION ${FALLBACK_CONFIG_DIR} + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sway/ COMPONENT configuration ) 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) { "$XDG_CONFIG_HOME/sway/config", "$HOME/.i3/config", "$XDG_CONFIG_HOME/i3/config", - FALLBACK_CONFIG_DIR "/config", - "/etc/i3/config", + "${CMAKE_INSTALL_FULL_SYSCONFDIR}/sway/config", + "${CMAKE_INSTALL_FULL_SYSCONFDIR}/i3/config", }; if (!getenv("XDG_CONFIG_HOME")) { |