summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-18 00:30:10 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-12-18 00:30:10 +0100
commit5dca1d0133fd5fdb57993de69bbaf09c1f0f0033 (patch)
tree292a0a1242a5b50088f0b3f44c71a85017b1a40b
parentc1c7e776c3bd9fdd7cad5e0f0387568185ad8358 (diff)
unity.cmake: correctly compare strings with strings
(bzr r4054.1.2)
-rwxr-xr-xtools/unity.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/unity.cmake b/tools/unity.cmake
index 213f4650f..787c920ca 100755
--- a/tools/unity.cmake
+++ b/tools/unity.cmake
@@ -109,7 +109,7 @@ def process_and_start_unity (verbose, debug_mode, compiz_path, compiz_args, log_
cmdline = open(os.path.join(pid_path, "cmdline"), "rb").read()
if re.match(rb"^compiz\b", cmdline):
compiz_env = open(os.path.join(pid_path, "environ"), "rb").read()
- if display in compiz_env:
+ if display in compiz_env.decode(sys.getdefaultencoding()):
subprocess.call (["kill", "-9", pid])
except IOError:
continue