sway: raise error on non-accessible background file

This commit is contained in:
Tamino Bauknecht 2023-12-12 14:53:50 +01:00
parent bf2b79b284
commit ee21ad959f
No known key found for this signature in database
GPG key ID: 77837396BE935C6C

View file

@ -123,7 +123,10 @@ struct cmd_results *output_cmd_background(int argc, char **argv) {
src);
config_add_swaynag_warning("Unable to access background file '%s'",
src);
struct cmd_results *result = cmd_results_new(CMD_FAILURE,
"unable to access background file '%s'", src);
free(src);
return result;
} else {
output->background = src;
output->background_option = strdup(mode);