]> git.eshelyaron.com Git - emacs.git/commitdiff
Prefer DE specific commands to set wallpaper
authorStefan Kangas <stefankangas@gmail.com>
Mon, 19 Sep 2022 09:39:00 +0000 (11:39 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 19 Sep 2022 09:39:03 +0000 (11:39 +0200)
* 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

index 4572a8c06282072e318db214202295e0232822fd..ff47d37e3a65fa53a31d8c1c260f6380a1e4c712 100644 (file)
 (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
     ;; 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