• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

Revisãocc9aa573714f3ae3a494e047cae14819268f266f (tree)
Hora2012-04-06 03:21:50
AutorChristopher Roy Bratusek <nano@tuxf...>
CommiterChristopher Roy Bratusek

Mensagem de Log

int-modules: check for XDG_CURRENT_DESKTOP

Mudança Sumário

Diff

--- a/lisp/sawfish/wm/integration/gnome.jl
+++ b/lisp/sawfish/wm/integration/gnome.jl
@@ -68,6 +68,7 @@
6868 ;; Returns nil if gnome is not found.
6969 ;; If detected, returns t, and do also gnome support init.
7070 (define (detect-gnome)
71- (when (getenv "GNOME_DESKTOP_SESSION_ID")
71+ (when (or (equal (getenv "XDG_CURRENT_DESKTOP") "GNOME")
72+ (getenv "GNOME_DESKTOP_SESSION_ID"))
7273 (init)
7374 t)))
--- a/lisp/sawfish/wm/integration/kde.jl
+++ b/lisp/sawfish/wm/integration/kde.jl
@@ -80,11 +80,12 @@
8080 (system "qdbus org.kde.kded /org/freedesktop/PowerManagement Suspend &"))
8181 (,(_ "_Hibernate from KDE")
8282 (system "qdbus org.kde.kded /org/freedesktop/PowerManagement Hibernate &")))))))
83-
83+
8484 ;; Returns nil if kde is not found.
8585 ;; If detected, returns t, and do also kde support init.
8686 (define (detect-kde)
87- (when (getenv "KDE_FULL_SESSION")
87+ (when (or (equal (getenv "XDG_CURRENT_DESKTOP") KDE)
88+ (getenv "KDE_FULL_SESSION"))
8889 (init)
8990 t))
9091
--- a/lisp/sawfish/wm/integration/mate.jl
+++ b/lisp/sawfish/wm/integration/mate.jl
@@ -68,6 +68,7 @@
6868 ;; Returns nil if mate is not found.
6969 ;; If detected, returns t, and do also mate support init.
7070 (define (detect-mate)
71- (when (getenv "MATE_DESKTOP_SESSION_ID")
71+ (when (or (equal (getenv "XDG_CURRENT_DESKTOP") "MATE")
72+ (getenv "MATE_DESKTOP_SESSION_ID"))
7273 (init)
7374 t)))
--- a/lisp/sawfish/wm/integration/razor.jl
+++ b/lisp/sawfish/wm/integration/razor.jl
@@ -80,7 +80,8 @@
8080 ;; Returns nil if razor is not found.
8181 ;; If detected, returns t, and do also razor support init.
8282 (define (detect-razor)
83- (when (or (equal (getenv "DESKTOP_SESSION") "razor")
83+ (when (or (equal (getenv "XDG_CURRENT_DESKTKOP") "Razor")
84+ (equal (getenv "DESKTOP_SESSION") "razor")
8485 (get-window-by-class "Razor-desktop" #:regex t))
8586 (init)
8687 t)))
--- a/lisp/sawfish/wm/integration/xfce.jl
+++ b/lisp/sawfish/wm/integration/xfce.jl
@@ -77,6 +77,7 @@
7777 ;; Returns nil if xfce is not found.
7878 ;; If detected, returns t, and do also xfce support init.
7979 (define (detect-xfce)
80- (when (get-x-property 'root '_DT_SAVE_MODE)
80+ (when (or (get-x-property 'root '_DT_SAVE_MODE)
81+ (equal (getenv "XDG_CURRENT_DESKTOP") "XFCE"))
8182 (init)
8283 t)))