; Fix wallpaper-set on TTY
* lisp/image/wallpaper.el (wallpaper-set): Don't check for 'display-graphic-p', to allow setting the wallpaper from a TTY.
This commit is contained in:
parent
4907859ee0
commit
3c1579697f
1 changed files with 5 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue