projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e0cde2
)
Improve error when wallpaper-command is nil
author
Stefan Kangas
<stefankangas@gmail.com>
Thu, 15 Sep 2022 16:48:41 +0000
(18:48 +0200)
committer
Stefan Kangas
<stefankangas@gmail.com>
Thu, 15 Sep 2022 16:48:41 +0000
(18:48 +0200)
* lisp/image/wallpaper.el (wallpaper-set): Improve the error message
when 'wallpaper-command' is nil.
lisp/image/wallpaper.el
patch
|
blob
|
history
diff --git
a/lisp/image/wallpaper.el
b/lisp/image/wallpaper.el
index d024d6238cb5bd7e1f0d91e31aea1e0885468367..fe6882a5880d80bb919056c38138a9ef5f668e25 100644
(file)
--- a/
lisp/image/wallpaper.el
+++ b/
lisp/image/wallpaper.el
@@
-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"