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]: