Subject: bug#937: elogind: SwayWM fails to launch from vTTY: Could not take device: No such file or directory

From: [email-masked]
Date: Sun, 25 Jan 2026 19:14:58 +0000

On Sunday, January 25th, 2026 at 13:06, Andrew Bower <[email-masked]> wrote:
> I have a hunch this will do it...
> 
> The error is indeed coming from a call that will cause failure. Setting
> this argument to 'true' will deconfigure use of the notify socket once
> we've signalled readiness.
> 
> $ git diff
> diff --git a/src/shared/daemon-util.h b/src/shared/daemon-util.h
> index 711885bba..6823cc31d 100644
> --- a/src/shared/daemon-util.h
> +++ b/src/shared/daemon-util.h
> @@ -12,7 +12,7 @@
> 
> static inline const char *notify_start(const char *start, const char *stop) {
> if (start)
> - (void) sd_notify(false, start);
> + (void) sd_notify(true, start);
> 
> return stop;
> }

Winner, winner!  This seems to do the trick, with an unmolested elogind initscript (255.17-4).

Kudos!

--
Nathan