diff options
-rw-r--r-- | sway/commands/output/background.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c index e45b571e..74894812 100644 --- a/sway/commands/output/background.c +++ b/sway/commands/output/background.c | |||
@@ -110,7 +110,7 @@ struct cmd_results *output_cmd_background(int argc, char **argv) { | |||
110 | if (!can_access) { | 110 | if (!can_access) { |
111 | wlr_log(WLR_ERROR, "Unable to access background file '%s': %s", | 111 | wlr_log(WLR_ERROR, "Unable to access background file '%s': %s", |
112 | src, strerror(errno)); | 112 | src, strerror(errno)); |
113 | if (!config->validating) { | 113 | if (config->reading && !config->validating) { |
114 | swaynag_log(config->swaynag_command, | 114 | swaynag_log(config->swaynag_command, |
115 | &config->swaynag_config_errors, | 115 | &config->swaynag_config_errors, |
116 | "Unable to access background file '%s'", src); | 116 | "Unable to access background file '%s'", src); |