Bug#469478: startx hardcodes xserverauthfile in $HOME, please be flexible
Package: xbase-clients
Version: 1:7.2.ds2-2
Severity: normal
--- Please enter the report below this line. ---
Hello,
When starting X with startx:
The client Xauthority file can be chosen via the $XAUTHORITY env var
but not the server one which is hardcoded as following:
xserverauthfile=$HOME/.serverauth.$$
xauth -q -f $xserverauthfile << EOF
add :$dummy . $mcookie
EOF
serverargs=${serverargs}" -auth "${xserverauthfile}
So even if I provide a ~/.xserverrc with "-auth /..." it's overwritten.
Please provide a way to be able to also specify where to put the server
file, e.g. an env var XSERVERAUTHPATH or even XSERVERAUTHFILE,
or test first if a "-auth" option already exists in the ${serverargs}
(so from ~/.xserverrc) before assigning a new value to $xserverauthfile
My basic motivation, except for symmetry, is that my home directory is
on a filesystem which doesn't allow file locking (namely encfs) so I
want to be able to store the file somewhere else.
Thanks
Phil
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.22-3-vserver-686
Debian Release: lenny/sid
990 testing ftp.kulnet.kuleuven.ac.be
500 unstable ftp.kulnet.kuleuven.ac.be
500 unstable debian.jones.dk
--- Package information. ---
Depends (Version) | Installed
=================================-+-==============
libc6 (>= 2.5) | 2.7-6
libfontconfig1 (>= 2.4.0) | 2.5.0-2
libfreetype6 (>= 2.2) | 2.3.5-1+b1
libfs6 | 2:1.0.0-4
libgl1-mesa-glx | 7.0.2-4
OR libgl1 |
libice6 (>= 1:1.0.0) | 2:1.0.4-1
libpng12-0 (>= 1.2.13-4) | 1.2.15~beta5-3
libsm6 | 2:1.0.3-1+b1
libx11-6 | 2:1.0.3-7
libxau6 | 1:1.0.3-2
libxaw7 | 2:1.0.4-1
libxcursor1 (>> 1.1.2) | 1:1.1.9-1
libxext6 | 1:1.0.3-2
libxft2 (>> 2.1.1) | 2.1.12-2
libxi6 | 2:1.1.3-1
libxinerama1 | 1:1.0.2-1
libxkbfile1 | 1:1.0.4-1
libxmu6 | 2:1.0.4-1
libxmuu1 | 2:1.0.4-1
libxrandr2 (>= 2:1.2.0) | 2:1.2.2-1
libxrender1 | 1:0.9.4-1
libxss1 | 1:1.1.2-1
libxt6 | 1:1.0.5-3
libxtrap6 | 1:1.0.0-4
libxtst6 | 2:1.0.3-1
libxv1 | 1:1.0.3-1
libxxf86dga1 | 2:1.0.2-1
libxxf86vm1 | 1:1.0.1-2
zlib1g (>= 1:1.2.1) | 1:1.2.3.3.dfsg-11
cpp | 4:4.2.2-2
Reply to: