[Debian-eeepc-devel] Bug#471521: Bug#471521: vga-toggle.sh: does not do XAUTHORITY dance
Trent W. Buck
trentbuck at gmail.com
Tue Mar 18 19:20:20 UTC 2008
On Tue, Mar 18, 2008 at 07:26:24PM +0100, Nico Golde wrote:
>> Also note that gdm uses a pseudorandomly-named temporary file in
>> /tmp rather than ~user/.Xauthority, so the current dance will not
>> work for them.
>
> That's sad but there is currently no sane way to do this.
I know. For the record, here's the dance I've done for years in
.Xclients (selecting "default X session", IIRC, in gdm) to move
.Xauthority back to the expected place:
## Dance so screen subprocesses can talk to GDM-spawned X servers.
if test -n "$XAUTHORITY"
then
xauth extract - $DISPLAY |
xauth -f ~/.Xauthority merge -
unset XAUTHORITY
fi
> Look at #462954 for example to see another example of a problem
> detecting the x session this way.
That's another one of my bugs! ;-)
> Ideally X should provide a sane way to get it but we don't know of
> any yet.
Presumably gdm's approach is to prevent malicious root users doing
just such things as acpid scripts need to do :-)
More information about the Debian-eeepc-devel
mailing list