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 :-) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]