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:
parent
62da78e1f8
commit
9b53a10f4c
|
@ -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" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue