aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-10 20:18:29 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-10 20:18:29 +0200
commit0dd119ba5d1fdd176f6c95bfa18352daa133124b (patch)
treea365abeebd7f3f32831d0938f0499ee8471069a5 /src
parenttest: test ramp order (diff)
downloadlibgamma-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 'src')
-rw-r--r--src/lib/libgamma-facade.c.gpp2
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;