]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix wallpaper-set on TTY
authorStefan Kangas <stefankangas@gmail.com>
Thu, 15 Sep 2022 17:21:51 +0000 (19:21 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 15 Sep 2022 17:25:09 +0000 (19:25 +0200)
* lisp/image/wallpaper.el (wallpaper-set): Don't check for
'display-graphic-p', to allow setting the wallpaper from a TTY.

lisp/image/wallpaper.el

index 5622f9b8e8a8e1434c6e5d125841869274868f8a..16fc9d23ecb2d14f56c3bbeb00ee480ac3d4445f 100644 (file)
@@ -237,13 +237,11 @@ options `wallpaper-command' and `wallpaper-command-args'.
 
 On MS-Windows and Haiku systems, no external command is needed,
 so the value of `wallpaper-commands' is ignored."
-  (interactive (list (and
-                      (display-graphic-p)
-                      (read-file-name "Set desktop background to: "
-                                      default-directory nil t nil
-                                      (lambda (fn)
-                                        (or (file-directory-p fn)
-                                            (string-match (image-file-name-regexp) fn)))))))
+  (interactive (list (read-file-name "Set desktop background to: "
+                                     default-directory nil t nil
+                                     (lambda (fn)
+                                       (or (file-directory-p fn)
+                                           (string-match (image-file-name-regexp) fn))))))
   (when (file-directory-p file)
     (error "Can't set wallpaper to a directory: %s" file))
   (unless (file-exists-p file)