From b56f853103c3a3be1c8279ad5977d91648a1bb18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 16 Mar 2021 10:29:36 +0100 Subject: [PATCH] perf-tool: Only 'restore' gnome-shell if run with --replace Otherwise the perf tool will fork and spawn a gnome-shell process that'll just go and fail. Part-of: --- src/gnome-shell-perf-tool.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnome-shell-perf-tool.in b/src/gnome-shell-perf-tool.in index a1b5d5994..f1df14b99 100755 --- a/src/gnome-shell-perf-tool.in +++ b/src/gnome-shell-perf-tool.in @@ -320,7 +320,7 @@ if args: normal_exit = run_performance_test() if normal_exit: - if not options.hwtest: + if not options.hwtest and options.replace: restore_shell() else: sys.exit(1)