mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
sway: raise error on non-accessible background file
This commit is contained in:
parent
bf2b79b284
commit
255ff665c5
|
@ -123,7 +123,10 @@ struct cmd_results *output_cmd_background(int argc, char **argv) {
|
||||||
src);
|
src);
|
||||||
config_add_swaynag_warning("Unable to access background file '%s'",
|
config_add_swaynag_warning("Unable to access background file '%s'",
|
||||||
src);
|
src);
|
||||||
|
struct cmd_results *result = cmd_results_new(CMD_FAILURE,
|
||||||
|
"unable to access background file '%s'", src);
|
||||||
free(src);
|
free(src);
|
||||||
|
return result;
|
||||||
} else {
|
} else {
|
||||||
output->background = src;
|
output->background = src;
|
||||||
output->background_option = strdup(mode);
|
output->background_option = strdup(mode);
|
||||||
|
|
Loading…
Reference in a new issue