From 0dd119ba5d1fdd176f6c95bfa18352daa133124b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 10 Aug 2015 20:18:29 +0200 Subject: add /dev/console as an alternative for drm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/libgamma-facade.c.gpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/libgamma-facade.c.gpp b/src/lib/libgamma-facade.c.gpp index ccf60ee..d7e3f4b 100644 --- a/src/lib/libgamma-facade.c.gpp +++ b/src/lib/libgamma-facade.c.gpp @@ -86,6 +86,8 @@ static int libgamma_is_vt_proper(int fd) return 0; /* Validate TTY path. */ + if (!strcmp(buf, "/dev/console")) + return 1; if (strstr(buf, "/dev/tty") != buf) return 0; -- cgit v1.2.3-70-g09d2