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:
parent
2e0cde244a
commit
3ba47a0782
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue