From cdf370626f08ed509a5dde9d5618eed29d625032 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Tue, 14 Dec 2021 15:55:55 +0100 Subject: [PATCH] logind: enable wall messages by default Something calling directly into the dbus interface to request a shutdown may not bother turning wall messages on explicitly. This has the convenient side effect that no separate polkit auth is required to turn on wall messages. Was annoying as having a wall message is the default behavior of the commandline tools. Now it's the other way around ie eg systemctl reboot --no-wall requires auth to explicitly turn off the wall message. --- src/login/logind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/login/logind.c b/src/login/logind.c index 52b1d95034..b24f26485a 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -54,6 +54,7 @@ static int manager_new(Manager **ret) { *m = (Manager) { .console_active_fd = -1, .reserve_vt_fd = -1, + .enable_wall_messages = true, .idle_action_not_before_usec = now(CLOCK_MONOTONIC), }; -- 2.25.1