Subject: bug#36590: sway fails to launch after installing

From: martin <[email-masked]>
Date: Thu, 11 Jul 2019 11:50:31 -0500

so after I set XDG_RUNTIME_DIR=/tmp

i get the following errors

[source/backend/session/logind.c:511] User has no session

[source/backend/session/logind.c:599] Couldn't find an active session or
a greeter session

[source/backend/session/direct-ipc.c:96] Failed to load session backend

[source/backend/backend.c:321] Failed to start a DRM session

[source/backend/sway/server.c:47] Unable to create backend

The first error looks like it start here
https://github.com/swaywm/wlroots/blob/master/backend/session/logind.c#L503

where `sd_uid_get_sessions
<https://www.freedesktop.org/software/systemd/man/sd_uid_get_state.html>
` returns 0. I'm not sure why it would return 0 though.

On 7/10/19 6:38 PM, martin wrote:
> After installing sway it fails to launch from the command line. The
> resulting error is
>
>
> "XDG_RUNTIME_DIR is not set in the environment. Aborting."
>
>
>
>