mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
Display a message when wallpaper was set
* lisp/image/wallpaper.el (wallpaper-default-set-function): Display a message when the wallpaper was successfully set.
This commit is contained in:
parent
b0289e7f6d
commit
2ec061bf9c
@ -439,8 +439,10 @@ This is the default function for `wallpaper-set-function'."
|
||||
(setf (process-sentinel process)
|
||||
(lambda (process status)
|
||||
(unwind-protect
|
||||
(unless (and (eq (process-status process) 'exit)
|
||||
(zerop (process-exit-status process)))
|
||||
(if (and (eq (process-status process) 'exit)
|
||||
(zerop (process-exit-status process)))
|
||||
(message "Desktop wallpaper changed to %s"
|
||||
(abbreviate-file-name file))
|
||||
(message "command \"%s %s\": %S"
|
||||
(string-join (process-command process) " ")
|
||||
(string-replace "\n" "" status)
|
||||
|
Loading…
Reference in New Issue
Block a user