mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
Use SYSCONFDIR as recommended
- swaylock config path not hardcoded anymore - the unusual and weird FALLBACK_CONFIG_DIR is no more
This commit is contained in:
parent
23df7ed502
commit
f02cf75ff3
5 changed files with 6 additions and 11 deletions
|
|
@ -42,7 +42,7 @@ install(
|
|||
)
|
||||
install(
|
||||
FILES ${PROJECT_SOURCE_DIR}/config
|
||||
DESTINATION ${FALLBACK_CONFIG_DIR}
|
||||
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sway/
|
||||
COMPONENT configuration
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue