aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;