From 00a96d1d5be44672edf0e10364ff8ff126d54128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20=C5=A0est=C3=A1k?= Date: Thu, 8 Sep 2016 23:31:27 +0200 Subject: [PATCH] Change way of detection KDE so that it detects KWin in other environments --- core-modules/000QubesVm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 3c0760a6..e8d9b6ce 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -1783,8 +1783,8 @@ class QubesVm(object): # Avoid using environment variables for checking the current session, # because this script may be called with cleared env (like with sudo). if subprocess.check_output( - ['xprop', '-root', '-notype', 'KDE_SESSION_VERSION']) == \ - 'KDE_SESSION_VERSION = 5\n': + ['xprop', '-root', '-notype', 'KWIN_RUNNING']) == \ + 'KWIN_RUNNING = 0x1\n': # native decoration plugins is used, so adjust window properties # accordingly guid_cmd += ['-T'] # prefix window titles with VM name