Hi Trent, * Trent W. Buck <[EMAIL PROTECTED]> [2008-03-18 19:09]: > hotkey.sh does an XAUTHORITY dance to allow root to attach X clients > to a running server. vga-toggle.sh does not do this, and thus its > xrandr commands fail.
Looks like the vga-toogle funtion doesn't know anything about XAUTHORITY then because it is started in a subshell. Cause that's exactly why there was/is the notify call before the vga-toggle in hotkey.sh > Perhaps the XAUTHORITY dance in hotkey.sh should be abstracted out > into a library sourced by both scripts? Sounds good, yes. > 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. Look at #462954 for example to see another example of a problem detecting the x session this way. Ideally X should provide a sane way to get it but we don't know of any yet. Kind regards Nico -- Nico Golde - http://www.ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF For security reasons, all text in this mail is double-rot13 encrypted.
pgpGNSIii8LBq.pgp
Description: PGP signature