Xpra: Ticket #1859: --use-display: XAUTHORITY is not honoured

System: debian 9, winswitch repository

Since xpra v2.3-r19246 xpra does not use/regard XAUTHORITY to access a display with --use-display if the specified display uses cookie authentication. It fails with 'no protocol specified'.

Code to reproduce:

/usr/bin/Xvfb :40 -screen 0 1920x1080x24 \
  -nolisten tcp -dpms -s off -retro \
  +extension Composite +extension RANDR +extension RENDER +extension GLX\
  +extension XTEST \
  -auth /tmp/cookie \
  &
sleep 2
xauth -f /tmp/cookie add :40 . $(mcookie)
# env DISPLAY=:40 XAUTHORITY=/tmp/cookie xterm   #no error message
env DISPLAY=:40 XAUTHORITY=/tmp/cookie xpra start :40 --use-display  --start-via-proxy=no --daemon=no


Tue, 29 May 2018 13:12:51 GMT - Antoine Martin: priority, status changed; milestone set


Mon, 11 Jun 2018 12:18:25 GMT - Antoine Martin: status changed; resolution set

This was caused by r18646 and #1776.

Fixed in r19606. This will be included in the next stable update. Thanks for the report.


Mon, 11 Jun 2018 12:41:09 GMT - Antoine Martin: summary changed


Sat, 23 Jan 2021 05:35:40 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1859