diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-03-01 20:48:21 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-03-01 20:48:21 +0100 |
commit | c5eb4d56d6e2bb6942fea1bbbcc0cc988a903710 (patch) | |
tree | c69fb9c9c1e69fbd728f455e6e2e695b113de659 /fbcon.c | |
parent | d6b7c594b70ed0429a25ac60fae534cbd892764e (diff) | |
download | fbida-c5eb4d56d6e2bb6942fea1bbbcc0cc988a903710.tar.gz |
even more logind logging
Diffstat (limited to 'fbcon.c')
-rw-r--r-- | fbcon.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 */ |