diff options
author | Tamino Bauknecht <dev@tb6.eu> | 2023-12-12 14:53:50 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-14 10:49:20 +0100 |
commit | 2bba8a861885d770d1cd081ec22567e4de5e991a (patch) | |
tree | 3e20cb3f9f89743b9f499e80f9f70bbd2939479d | |
parent | desktop/xwayland: correctly handle association on o-r change (diff) | |
download | sway-2bba8a861885d770d1cd081ec22567e4de5e991a.tar.gz sway-2bba8a861885d770d1cd081ec22567e4de5e991a.tar.zst sway-2bba8a861885d770d1cd081ec22567e4de5e991a.zip |
sway: raise error on non-accessible background file
(cherry picked from commit 255ff665c53c8d042bce0c4cff4081d2bd35beeb)
-rw-r--r-- | sway/commands/output/background.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c index 67f212ff..d691295f 100644 --- a/sway/commands/output/background.c +++ b/sway/commands/output/background.c | |||
@@ -123,7 +123,10 @@ struct cmd_results *output_cmd_background(int argc, char **argv) { | |||
123 | src); | 123 | src); |
124 | config_add_swaynag_warning("Unable to access background file '%s'", | 124 | config_add_swaynag_warning("Unable to access background file '%s'", |
125 | src); | 125 | src); |
126 | struct cmd_results *result = cmd_results_new(CMD_FAILURE, | ||
127 | "unable to access background file '%s'", src); | ||
126 | free(src); | 128 | free(src); |
129 | return result; | ||
127 | } else { | 130 | } else { |
128 | output->background = src; | 131 | output->background = src; |
129 | output->background_option = strdup(mode); | 132 | output->background_option = strdup(mode); |