aboutsummaryrefslogtreecommitdiffstats
path: root/fbcon.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-03-01 20:48:21 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-03-01 20:48:21 +0100
commitc5eb4d56d6e2bb6942fea1bbbcc0cc988a903710 (patch)
treec69fb9c9c1e69fbd728f455e6e2e695b113de659 /fbcon.c
parentd6b7c594b70ed0429a25ac60fae534cbd892764e (diff)
downloadfbida-c5eb4d56d6e2bb6942fea1bbbcc0cc988a903710.tar.gz
even more logind logging
Diffstat (limited to 'fbcon.c')
-rw-r--r--fbcon.c12
1 files changed, 6 insertions, 6 deletions
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 */