Package: brltty / 5.2~20141018-5

git-2421eda Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
commit 2421eda2cf18ea4684b904867735778509af26c6
Author: Dave Mielke <dave@mielke.cc>
Date:   Sun Feb 1 17:40:30 2015 -0500

    Fix XDG_VTNR/WINDOWPATH support in xbrlapi. (st)

diff --git a/Programs/xbrlapi.c b/Programs/xbrlapi.c
index 4822e11..093f2c4 100644
--- a/Programs/xbrlapi.c
+++ b/Programs/xbrlapi.c
@@ -185,12 +185,13 @@ static int getXVTnb(void);
 
 void getVT(void) {
   char *path = getenv("WINDOWPATH");
+  char *vtnr = getenv("XDG_VTNR");
   int vtno = -1;
-  if (!path)
+  if (!path && !vtnr)
     /* Workaround for old xinit/xdm/gdm/kdm */
     vtno = getXVTnb();
 
-  if (path || vtno == -1) {
+  if (path || vtnr || vtno == -1) {
     if (brlapi_enterTtyModeWithPath(NULL,0,NULL)<0)
       fatal_brlapi_errno("geTtyPath",gettext("cannot get tty\n"));
   } else {