Merge pull request #8401 from DamienCassou/document-desktopManagerHandlesLidAndPower-in-systemd

Explanation to desktopManagerHandlesLidAndPower
This commit is contained in:
Damien Cassou 2015-06-19 14:02:04 +02:00
commit 90912f8aa5

View File

@ -56,7 +56,7 @@ let
if [ -z "$_INHIBITION_LOCK_TAKEN" ]; then
export _INHIBITION_LOCK_TAKEN=1
if ! ${config.systemd.package}/bin/loginctl show-session $XDG_SESSION_ID | grep -q '^RemoteHost='; then
exec ${config.systemd.package}/bin/systemd-inhibit --what=handle-lid-switch:handle-power-key "$0" "$sessionType"
exec ${config.systemd.package}/bin/systemd-inhibit --what=handle-lid-switch:handle-power-key --why="See NixOS configuration option 'services.xserver.displayManager.desktopManagerHandlesLidAndPower' for more information." "$0" "$sessionType"
fi
fi