Improve error when wallpaper-command is nil

* lisp/image/wallpaper.el (wallpaper-set): Improve the error message
when 'wallpaper-command' is nil.
This commit is contained in:
Stefan Kangas 2022-09-15 18:48:41 +02:00
parent 2e0cde244a
commit 3ba47a0782

View file

@ -254,6 +254,8 @@ On Haiku, no external command is needed, so the value of
((featurep 'haiku)
(haiku-set-wallpaper file))
(t
(unless wallpaper-command
(error "Couldn't find a command to set the wallpaper with"))
(let* ((fmt-spec `((?f . ,(expand-file-name file))
(?h . ,(wallpaper--get-height-or-width
"height"