* lisp/image/wallpaper.el (wallpaper--find-command)
(wallpaper--find-command-args): Avoid backtrace when
'wallpaper--find-setter' returns nil, e.g. on MS-Windows.
(Bug#58167)
(defun wallpaper--find-command ()
"Return a valid command to set the wallpaper in this environment."
- (wallpaper-setter-command (wallpaper--find-setter)))
+ (when-let ((setter (wallpaper--find-setter)))
+ (wallpaper-setter-command setter)))
(defun wallpaper--find-command-args ()
"Return command line arguments matching `wallpaper-command'."
- (wallpaper-setter-args (wallpaper--find-setter)))
+ (when-let ((setter (wallpaper--find-setter)))
+ (wallpaper-setter-args setter)))
\f
;;; Customizable variables