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
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) {
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty