[Debian-eeepc-devel] Bug#471521: Bug#471521: vga-toggle.sh: does not do XAUTHORITY dance
Nico Golde
nion at debian.org
Tue Mar 18 18:26:24 UTC 2008
Hi Trent,
* Trent W. Buck <trentbuck at gmail.com> [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 - nion at jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080318/66112720/attachment.pgp
More information about the Debian-eeepc-devel
mailing list