mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Add get_config message type to ipc
This commit is contained in:
parent
5fd36164a0
commit
23c1c26c3f
9 changed files with 76 additions and 18 deletions
|
|
@ -80,7 +80,7 @@ struct cmd_results *output_cmd_background(int argc, char **argv) {
|
|||
if (config->reading && *src != '/') {
|
||||
// src file is inside configuration dir
|
||||
|
||||
char *conf = strdup(config->current_config);
|
||||
char *conf = strdup(config->current_config_path);
|
||||
if (!conf) {
|
||||
wlr_log(WLR_ERROR, "Failed to duplicate string");
|
||||
free(src);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ struct cmd_results *cmd_reload(int argc, char **argv) {
|
|||
if ((error = checkarg(argc, "reload", EXPECTED_EQUAL_TO, 0))) {
|
||||
return error;
|
||||
}
|
||||
if (!load_main_config(config->current_config, true)) {
|
||||
if (!load_main_config(config->current_config_path, true)) {
|
||||
return cmd_results_new(CMD_FAILURE, "reload", "Error(s) reloading config.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue