From f735aa0f3954750df799fce3452b56e5bdac2184 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 19 Sep 2022 11:39:00 +0200 Subject: [PATCH] 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) --- lisp/image/wallpaper.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2