From: Stefan Kangas Date: Mon, 19 Sep 2022 09:39:00 +0000 (+0200) Subject: Prefer DE specific commands to set wallpaper X-Git-Tag: emacs-29.0.90~1856^2~372^2~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f735aa0f3954750df799fce3452b56e5bdac2184;p=emacs.git Prefer DE specific commands to set wallpaper * lisp/image/wallpaper.el (wallpaper--default-commands): Rearrange order to prioritize desktop environment specific commands before general Wayland commands like "wbg" or even "swaybg". (Bug#57781) --- diff --git a/lisp/image/wallpaper.el b/lisp/image/wallpaper.el index 4572a8c0628..ff47d37e3a6 100644 --- a/lisp/image/wallpaper.el +++ b/lisp/image/wallpaper.el @@ -55,10 +55,6 @@ (defvar wallpaper--default-commands ;; When updating this, also update the custom :type for `wallpaper-command'. '( - ;; Sway (Wayland) - ("swaybg" "-o" "*" "-i" "%f" "-m" "fill") - ;; Wayland General - ("wbg" "%f") ;; Gnome ("gsettings" "set" "org.gnome.desktop.background" "picture-uri" "file://%f") ;; KDE Plasma @@ -66,6 +62,10 @@ ;; XFCE ("xfconf-query" "-c" "xfce4-desktop" "-p" "/backdrop/screen0/monitoreDP/workspace0/last-image" "-s" "%f") + ;; Sway (Wayland) + ("swaybg" "-o" "*" "-i" "%f" "-m" "fill") + ;; Wayland General + ("wbg" "%f") ;; macOS ("osascript" "-e" "tell application \"Finder\" to set desktop picture to POSIX file \"%f\"") ;; Other / General X