1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 14:53:52 +01:00

Don't call swaynag_log for bg when not reading

This commit is contained in:
Brian Ashworth 2018-08-08 17:04:12 -04:00
parent 78c0f013dd
commit b6f4623551

@ -110,7 +110,7 @@ struct cmd_results *output_cmd_background(int argc, char **argv) {
if (!can_access) {
wlr_log(WLR_ERROR, "Unable to access background file '%s': %s",
src, strerror(errno));
if (!config->validating) {
if (config->reading && !config->validating) {
swaynag_log(config->swaynag_command,
&config->swaynag_config_errors,
"Unable to access background file '%s'", src);