mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
Fix some errors with config loading
This commit is contained in:
parent
accde8343b
commit
54374d81b5
|
@ -368,5 +368,8 @@ int handle_command(struct sway_config *config, char *exec) {
|
|||
free(argv[i]);
|
||||
}
|
||||
free(argv);
|
||||
if (ret != 0) {
|
||||
sway_log(L_ERROR, "Command failed: %s", cmd);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -43,8 +43,8 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
|
||||
setenv("DISPLAY", ":1", 1);
|
||||
if (load_config()) {
|
||||
exit(1);
|
||||
if (!load_config()) {
|
||||
sway_abort("Unable to load config");
|
||||
}
|
||||
|
||||
wlc_run();
|
||||
|
|
Loading…
Reference in a new issue