2007-08-28 | paulb | raw files shortlog changelog graph | [project @ 2007-08-28 22:24:55 by paulb] Improve robustness of XFCE test. | |
desktop.py (file) |
1.1 --- a/desktop.py Mon Aug 27 22:28:35 2007 +0000 1.2 +++ b/desktop.py Tue Aug 28 22:24:55 2007 +0000 1.3 @@ -125,7 +125,7 @@ 1.4 vars = "DISPLAY=:0.0 " 1.5 else: 1.6 vars = "" 1.7 - return _readfrom(vars + "xprop -root _DT_SAVE_MODE", shell=1).endswith(' = "xfce4"') 1.8 + return _readfrom(vars + "xprop -root _DT_SAVE_MODE", shell=1).strip().endswith(' = "xfce4"') 1.9 1.10 except OSError: 1.11 return 0