From 3d0a3841226e8d48b5d48c2f69c69ff9d26006f9 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 26 Sep 2024 09:59:02 +0200 Subject: [PATCH 2/2] wlheadless: Wait for the compositor up to 150 secs Some compositors who depend on DBus services may take up to 2 minutes to start. Increase the timeout to 150 seconds before declaring forfeit and bail out. Signed-off-by: Olivier Fourdan --- src/wlheadless/wlheadless_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wlheadless/wlheadless_common.py b/src/wlheadless/wlheadless_common.py index 57ede5e..d4a51d9 100644 --- a/src/wlheadless/wlheadless_common.py +++ b/src/wlheadless/wlheadless_common.py @@ -110,7 +110,7 @@ class WlheadlessCommon: def wait_compositor(self): """ Waits for the compositor to start """ - for _ in range(0, 3): + for _ in range(0, 150): try: self.__try_connect() return 0 -- 2.46.2