From c5eb4d56d6e2bb6942fea1bbbcc0cc988a903710 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 1 Mar 2019 20:48:21 +0100 Subject: even more logind logging --- fbcon.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fbcon.c') diff --git a/fbcon.c b/fbcon.c index b741e99..94b060d 100644 --- a/fbcon.c +++ b/fbcon.c @@ -518,18 +518,18 @@ int main(int argc, char *argv[]) struct winsize win; const char *drm_node = NULL; const char *fb_node = NULL; - const char *string; + const char *xdg_seat, *xdg_session_id; int input; pid_t child; setlocale(LC_ALL,""); fbcon_read_config(); - string = getenv("XDG_SEAT"); - if (string) - seat_name = string; - - if (getenv("XDG_SESSION_ID")) + xdg_seat = getenv("XDG_SEAT"); + xdg_session_id = getenv("XDG_SESSION_ID"); + if (xdg_seat) + seat_name = xdg_seat; + if (xdg_seat && xdg_session_id) logind_init(); /* look for gfx devices */ -- cgit