[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8238d87e15: ; * lisp/image/wallpaper.el: Fix last commit.
From: |
Stefan Kangas |
Subject: |
master 8238d87e15: ; * lisp/image/wallpaper.el: Fix last commit. |
Date: |
Thu, 22 Sep 2022 23:44:04 -0400 (EDT) |
branch: master
commit 8238d87e15e2b2b730b6290965d14787650a15af
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
; * lisp/image/wallpaper.el: Fix last commit.
---
lisp/image/wallpaper.el | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/lisp/image/wallpaper.el b/lisp/image/wallpaper.el
index effa25b180..31091a6002 100644
--- a/lisp/image/wallpaper.el
+++ b/lisp/image/wallpaper.el
@@ -105,10 +105,11 @@ In each of the command line arguments, \"%f\", \"%h\" and
\"%w\"
will be replaced as described in `wallpaper-command-args'.")
(cl-defmethod wallpaper--check-command ((_type (eql 'gsettings)))
- (or (member (downcase (env "DESKTOP_SESSION"))
- '("gnome" "gnome" "gnome-wayland" "gnome-xorg"
- "unity" "ubuntu" "pantheon" "budgie-desktop"
- "pop"))
+ (or (and (getenv "DESKTOP_SESSION")
+ (member (downcase (getenv "DESKTOP_SESSION"))
+ '("gnome" "gnome" "gnome-wayland" "gnome-xorg"
+ "unity" "ubuntu" "pantheon" "budgie-desktop"
+ "pop")))
(member "GNOME" (xdg-current-desktop))
(member "Budgie" (xdg-current-desktop))
(member "GNOME-Classic" (xdg-current-desktop))))
@@ -117,24 +118,28 @@ will be replaced as described in
`wallpaper-command-args'.")
(member "KDE" (xdg-current-desktop)))
(cl-defmethod wallpaper--check-command ((_type (eql 'xfconf-query)))
- (or (member (lowercase (env "DESKTOP_SESSION"))
- '("xubuntu" "ubuntustudio"))
+ (or (and (getenv "DESKTOP_SESSION")
+ (member (downcase (getenv "DESKTOP_SESSION"))
+ '("xubuntu" "ubuntustudio")))
(member "XFCE" (xdg-current-desktop))))
(cl-defmethod wallpaper--check-command ((_type (eql 'pcmanf)))
(member "LXDE" (xdg-current-desktop)))
(cl-defmethod wallpaper--check-command ((_type (eql 'pcmanf-qt)))
- (or (member (lowercase (env "DESKTOP_SESSION"))
+ (or (member (and (getenv "DESKTOP_SESSION")
+ (downcase (getenv "DESKTOP_SESSION")))
'("lubuntu" "lxqt"))
(member "LXQt" (xdg-current-desktop))))
;; (cl-defmethod wallpaper--check-command ((_type (eql 'gsettings)))
-;; (or (equal "mate" (lowercase (env "DESKTOP_SESSION")))
+;; (or (and (getenv "DESKTOP_SESSION")
+;; (equal "mate" (downcase (getenv "DESKTOP_SESSION"))))
;; (member "MATE" (xdg-current-desktop))))
;; (cl-defmethod wallpaper--check-command ((_type (eql 'gsettings)))
-;; (or (equal "cinnamon" (lowercase (env "DESKTOP_SESSION")))
+;; (or (equal "cinnamon" (and (getenv "DESKTOP_SESSION")
+;; (downcase (getenv "DESKTOP_SESSION"))))
;; (member "X-Cinnamon" (xdg-current-desktop))))
;; (cl-defmethod wallpaper--check-command ((_type (eql 'gsettings)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 8238d87e15: ; * lisp/image/wallpaper.el: Fix last commit.,
Stefan Kangas <=