[sawfish] improved KDE4 detection added XFCE detection



commit f7df22a63685b983685449945e29ad66dedfd85f
Author: Christopher Roy Bratusek <zanghar freenet de>
Date:   Sat Aug 21 19:07:04 2010 +0200

    improved KDE4 detection
    added XFCE detection

 lisp/sawfish/wm/defaults.jl |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/lisp/sawfish/wm/defaults.jl b/lisp/sawfish/wm/defaults.jl
index 1fe78b7..103fc73 100644
--- a/lisp/sawfish/wm/defaults.jl
+++ b/lisp/sawfish/wm/defaults.jl
@@ -37,8 +37,13 @@
 
 ;; if it looks like KDE is the desktop environment, then load the
 ;; extra KDE integration module
-  (if (getenv "KDE_SESSION_VERSION")
-      (require 'sawfish.wm.integration.kde))))
+  (if (getenv "KDE_FULL_SESSION")
+      (require 'sawfish.wm.integration.kde)
+      
+;; if it looks like XFCE is the desktop environment, then load the
+;; extra XFCE integration module
+  (if (get-x-property 'root '_DT_SAVE_MODE)
+      (require 'sawfish.wm.integration.xfce)))))
 
 ;; save errors to aid debugging
 (require 'sawfish.wm.ext.error-handler)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]