mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
Can customize config fallback directory
CMake takes a `FALLBACK_CONFIG_DIR` flag which is the directory where the standard configuration file `config` is copied at installation. If loading from typical configuration directories fails, sway loads FALLBACK_CONFIG_DIR/config (/etc/sway/config by default).
This commit is contained in:
parent
44d0f731c3
commit
09feef89ee
4 changed files with 16 additions and 9 deletions
|
|
@ -136,7 +136,7 @@ static char *get_config_path(void) {
|
|||
"$XDG_CONFIG_HOME/sway/config",
|
||||
"$HOME/.i3/config",
|
||||
"$XDG_CONFIG_HOME/i3/config",
|
||||
"/etc/sway/config",
|
||||
FALLBACK_CONFIG_DIR "config",
|
||||
"/etc/i3/config",
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue