mirror of
https://github.com/swaywm/sway.git
synced 2025-11-19 06:59:52 -05:00
parent
927ef0a5ec
commit
579fe70ed9
5 changed files with 86 additions and 6 deletions
|
|
@ -144,10 +144,15 @@ _continue:
|
|||
return test;
|
||||
}
|
||||
|
||||
bool load_config(void) {
|
||||
bool load_config(const char *file) {
|
||||
sway_log(L_INFO, "Loading config");
|
||||
|
||||
char *path = get_config_path();
|
||||
char *path;
|
||||
if (file != NULL) {
|
||||
path = strdup(file);
|
||||
} else {
|
||||
path = get_config_path();
|
||||
}
|
||||
|
||||
if (path == NULL) {
|
||||
sway_log(L_ERROR, "Unable to find a config file!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue