From 889e67287b55e43a5b7448ac1449ac1ff72ad076 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Fri, 20 Jan 2012 11:46:46 +0100 Subject: kill any previous compiz process as it can hangs before --replace (LP: #919132) Fixes LP: #919132 (bzr r1854.1.1) --- tools/unity.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/unity.cmake b/tools/unity.cmake index a1694ce81..791813094 100755 --- a/tools/unity.cmake +++ b/tools/unity.cmake @@ -138,6 +138,10 @@ def process_and_start_unity (verbose, debug_mode, compiz_args, log_file): if log_file: cli.extend(['2>&1', '|', 'tee', log_file]) + # kill a previous compiz if was there (this is a hack as compiz can + # sometimes get stuck and not exit on --replace) + subprocess.call (["pkill", "compiz"]) + # shell = True as it's the simpest way to | tee. # In this case, we need a string and not a list # FIXME: still some bug with 2>&1 not showing everything before wait() -- cgit v1.2.3