mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
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:
@@ -118,6 +118,7 @@ in {
|
||||
Unit = {
|
||||
Description = "Idle manager for Wayland";
|
||||
Documentation = "man:swayidle(1)";
|
||||
ConditionEnvironment = "WAYLAND_DISPLAY";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user