summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-01-22 11:25:15 -0500
committerChris Michael <cp.michael@samsung.com>2018-01-22 11:25:15 -0500
commit4e2406ed3b624463fbeec37d3a935df951bef703 (patch)
tree745669a500e9b2215bf84afabfc1dee74f35af66 /src/lib/elput
parent5d8f2df24bdaf76587cc50ebe8e7d9a5836355ed (diff)
ecore_drm2: Only use a virtual terminal on seat0
Summary: Only seat0 supports virtual terminals. Test Plan: Make sure enlightenment does not error out on non-seat0 due to a virtual terminal error. Enlightenment will not start yet on seat1 with this alone Reviewers: ManMower, devilhorns Reviewed By: devilhorns Subscribers: ManMower, devilhorns, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5710
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_logind.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c
index 842de225e8..ba7be0a763 100644
--- a/src/lib/elput/elput_logind.c
+++ b/src/lib/elput/elput_logind.c
@@ -523,15 +523,18 @@ _logind_connect(Elput_Manager **manager, const char *seat, unsigned int tty)
523 goto seat_err; 523 goto seat_err;
524 } 524 }
525 525
526 if (!_logind_session_vt_get(em->sid, &em->vt_num)) 526 if (!strcmp(seat, "seat0"))
527 { 527 {
528 ERR("Could not get session vt"); 528 if (!_logind_session_vt_get(em->sid, &em->vt_num))
529 goto vt_err; 529 {
530 } 530 ERR("Could not get session vt");
531 else if ((tty > 0) && (em->vt_num != tty)) 531 goto vt_err;
532 { 532 }
533 ERR("Requested VT %u differs from session VT %u", tty, em->vt_num); 533 else if ((tty > 0) && (em->vt_num != tty))
534 goto vt_err; 534 {
535 ERR("Requested VT %u differs from session VT %u", tty, em->vt_num);
536 goto vt_err;
537 }
535 } 538 }
536 539
537 free(s); 540 free(s);