[BRLTTY] brltty, orca and gdm not playing nicely

Samuel Thibault samuel.thibault at ens-lyon.org
Sun May 25 15:42:11 EDT 2014


Samuel Thibault, le Sun 25 May 2014 21:21:47 +0200, a écrit :
> It happens that gdm3 seems to have completely dropped the support for
> the WINDOWPATH variable, how nice...  I'll discuss with Gnome people.

Dave, could you commit the attached patch? gdm apparently switched
to defining XDG_VTNR instead of WINDOWPATH, breaking our conventions
without even telling us...

Samuel
-------------- next part --------------
diff --git a/Programs/brlapi_client.c b/Programs/brlapi_client.c
index 2cf817a..ae08212 100644
--- a/Programs/brlapi_client.c
+++ b/Programs/brlapi_client.c
@@ -1033,6 +1033,9 @@ int BRLAPI_STDCALL brlapi__enterTtyModeWithPath(brlapi_handle_t *handle, int *tt
   /* OK, Now we know where we are, so get the effective control of the terminal! */
   *nbTtys = 0;
   ttytreepath = getenv("WINDOWPATH");
+  if (!ttytreepath)
+    /* Cope with newer X session conventions */
+    ttytreepath = getenv("XDG_VTNR");
   if (ttytreepath)
   for(; *ttytreepath && t-(nbTtys+1)<=BRLAPI_MAXPACKETSIZE/sizeof(uint32_t);
     *t++ = htonl(ttypath), (*nbTtys)++, ttytreepath = ttytreepathstop+1) {


More information about the BRLTTY mailing list