From 7d60eba86d0fe2289c09c5cb7cfa28e7cbb06058 Mon Sep 17 00:00:00 2001 From: jbperrin Date: Fri, 17 Jul 2026 14:35:51 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20wayland-0=20pour=20wtype=20refresh=20?= =?UTF-8?q?=C3=A9cran?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/api/system_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/system_api.py b/backend/api/system_api.py index 1cfd966..b50884d 100644 --- a/backend/api/system_api.py +++ b/backend/api/system_api.py @@ -101,7 +101,7 @@ async def screen_refresh(request: Request): # Cherche le display Wayland du user pi (UID 1000) # Essaie wayland-0 puis wayland-1 xdg_runtime = "/run/user/1000" - cmd_wtype = f"WAYLAND_DISPLAY=wayland-1 XDG_RUNTIME_DIR={xdg_runtime} wtype -k F5" + cmd_wtype = f"WAYLAND_DISPLAY=wayland-0 XDG_RUNTIME_DIR={xdg_runtime} wtype -k F5" cmd_x11 = f"DISPLAY=:0 XAUTHORITY=/home/pi/.Xauthority xdotool key F5" for cmd in [cmd_wtype, cmd_x11]: