aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-09-16 22:37:56 +0200
committerStefan Kangas2022-09-16 22:39:33 +0200
commitfe7c015b20b5bca07aa178d28b9fd5cc66ad16f9 (patch)
treeab4b0ef02e1d783ac67565d722a7a2ee023b77fb
parent6938a2ddd2d9861a0f04e79d05ba976bdf91cc8c (diff)
downloademacs-fe7c015b20b5bca07aa178d28b9fd5cc66ad16f9.tar.gz
emacs-fe7c015b20b5bca07aa178d28b9fd5cc66ad16f9.zip
Support XFCE in wallpaper.el
* lisp/image/wallpaper.el (wallpaper--default-commands) (wallpaper-command): Support XFCE. (Bug#57781) Thanks to Thierry Volpiatto <thievol@posteo.net>.
-rw-r--r--lisp/image/wallpaper.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/image/wallpaper.el b/lisp/image/wallpaper.el
index 9572349c366..4572a8c0628 100644
--- a/lisp/image/wallpaper.el
+++ b/lisp/image/wallpaper.el
@@ -63,6 +63,9 @@
63 ("gsettings" "set" "org.gnome.desktop.background" "picture-uri" "file://%f") 63 ("gsettings" "set" "org.gnome.desktop.background" "picture-uri" "file://%f")
64 ;; KDE Plasma 64 ;; KDE Plasma
65 ("plasma-apply-wallpaperimage" "%f") 65 ("plasma-apply-wallpaperimage" "%f")
66 ;; XFCE
67 ("xfconf-query" "-c" "xfce4-desktop" "-p"
68 "/backdrop/screen0/monitoreDP/workspace0/last-image" "-s" "%f")
66 ;; macOS 69 ;; macOS
67 ("osascript" "-e" "tell application \"Finder\" to set desktop picture to POSIX file \"%f\"") 70 ("osascript" "-e" "tell application \"Finder\" to set desktop picture to POSIX file \"%f\"")
68 ;; Other / General X 71 ;; Other / General X
@@ -97,6 +100,9 @@ will be replaced as described in `wallpaper-command-args'.")
97(cl-defmethod wallpaper--check-command ((_type (eql 'plasma-apply-wallpaperimage))) 100(cl-defmethod wallpaper--check-command ((_type (eql 'plasma-apply-wallpaperimage)))
98 (member "KDE" (xdg-current-desktop))) 101 (member "KDE" (xdg-current-desktop)))
99 102
103(cl-defmethod wallpaper--check-command ((_type (eql 'xfconf-query)))
104 (member "XFCE" (xdg-current-desktop)))
105
100(cl-defmethod wallpaper--check-command ((_type (eql 'swaybg))) 106(cl-defmethod wallpaper--check-command ((_type (eql 'swaybg)))
101 (and (getenv "WAYLAND_DISPLAY") 107 (and (getenv "WAYLAND_DISPLAY")
102 (getenv "SWAYSOCK"))) 108 (getenv "SWAYSOCK")))
@@ -156,6 +162,7 @@ systems, where a native API is used instead."
156 (radio 162 (radio
157 (const :tag "gsettings (GNOME)" "gsettings") 163 (const :tag "gsettings (GNOME)" "gsettings")
158 (const :tag "plasma-apply-wallpaperimage (KDE Plasma)" "plasma-apply-wallpaperimage") 164 (const :tag "plasma-apply-wallpaperimage (KDE Plasma)" "plasma-apply-wallpaperimage")
165 (const :tag "xfconf-query (XFCE)" "xfconf-query")
159 (const :tag "swaybg (Wayland/Sway)" "swaybg") 166 (const :tag "swaybg (Wayland/Sway)" "swaybg")
160 (const :tag "wbg (Wayland)" "wbg") 167 (const :tag "wbg (Wayland)" "wbg")
161 (const :tag "gm (X Window System)" "gm") 168 (const :tag "gm (X Window System)" "gm")