diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-10 20:18:29 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-10 20:18:29 +0200 |
commit | 0dd119ba5d1fdd176f6c95bfa18352daa133124b (patch) | |
tree | a365abeebd7f3f32831d0938f0499ee8471069a5 | |
parent | test: test ramp order (diff) | |
download | libgamma-0dd119ba5d1fdd176f6c95bfa18352daa133124b.tar.gz libgamma-0dd119ba5d1fdd176f6c95bfa18352daa133124b.tar.bz2 libgamma-0dd119ba5d1fdd176f6c95bfa18352daa133124b.tar.xz |
add /dev/console as an alternative for drm
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/lib/libgamma-facade.c.gpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |