mirror of
https://github.com/swaywm/sway.git
synced 2024-11-18 22:19:14 +00:00
Fix issue #455
CMAKE_INSTALL_FULL_SYSCONFIG is not actually passed to the C preprocessor. I remember it working, so I must have messed up somewhere last time I touched this. This is fixed by manually passing its value to the C preprocessor through the SYSCONFDIR definition
This commit is contained in:
parent
d969a1dec0
commit
c487cf71a5
|
@ -26,6 +26,10 @@ add_executable(sway
|
||||||
workspace.c
|
workspace.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_definitions(
|
||||||
|
-DSYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}"
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(sway
|
target_link_libraries(sway
|
||||||
sway-common
|
sway-common
|
||||||
sway-protocols
|
sway-protocols
|
||||||
|
|
|
@ -197,8 +197,8 @@ static char *get_config_path(void) {
|
||||||
"$XDG_CONFIG_HOME/sway/config",
|
"$XDG_CONFIG_HOME/sway/config",
|
||||||
"$HOME/.i3/config",
|
"$HOME/.i3/config",
|
||||||
"$XDG_CONFIG_HOME/i3/config",
|
"$XDG_CONFIG_HOME/i3/config",
|
||||||
"${CMAKE_INSTALL_FULL_SYSCONFDIR}/sway/config",
|
SYSCONFDIR "/sway/config",
|
||||||
"${CMAKE_INSTALL_FULL_SYSCONFDIR}/i3/config",
|
SYSCONFDIR "/i3/config",
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!getenv("XDG_CONFIG_HOME")) {
|
if (!getenv("XDG_CONFIG_HOME")) {
|
||||||
|
|
Loading…
Reference in a new issue