swayidle: wait for WAYLAND_DISPLAY

To avoid this kind of message:

    swayidle[181123]: - [Line 1054] Unable to connect to the compositor. If your compositor is running, check or set the WAYLAND_DISPLAY environment variable.
This commit is contained in:
Matthieu Coudron 2024-06-02 10:16:22 +02:00 committed by GitHub
parent 62da78e1f8
commit 9b53a10f4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,6 +118,7 @@ in {
Unit = { Unit = {
Description = "Idle manager for Wayland"; Description = "Idle manager for Wayland";
Documentation = "man:swayidle(1)"; Documentation = "man:swayidle(1)";
ConditionEnvironment = "WAYLAND_DISPLAY";
PartOf = [ "graphical-session.target" ]; PartOf = [ "graphical-session.target" ];
}; };