devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4e2406ed3b624463fbeec37d3a935df951bef703

commit 4e2406ed3b624463fbeec37d3a935df951bef703
Author: Chris Michael <[email protected]>
Date:   Mon Jan 22 11:25:15 2018 -0500

    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
---
 src/lib/elput/elput_logind.c | 19 +++++++++++--------
 1 file 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)
         goto seat_err;
      }
 
-   if (!_logind_session_vt_get(em->sid, &em->vt_num))
+   if (!strcmp(seat, "seat0"))
      {
-        ERR("Could not get session vt");
-        goto vt_err;
-     }
-   else if ((tty > 0) && (em->vt_num != tty))
-     {
-        ERR("Requested VT %u differs from session VT %u", tty, em->vt_num);
-        goto vt_err;
+        if (!_logind_session_vt_get(em->sid, &em->vt_num))
+          {
+             ERR("Could not get session vt");
+             goto vt_err;
+          }
+        else if ((tty > 0) && (em->vt_num != tty))
+          {
+             ERR("Requested VT %u differs from session VT %u", tty, 
em->vt_num);
+             goto vt_err;
+          }
      }
 
    free(s);

-- 


Reply via email to