Public bug reported:
Binary package hint: acpi-support
The following code contains a comment explaining the problem. To
reproduce, chown root:root ~/.Xauthority and restart X.
# based on /usr/share/acpi-support/power-funcs, which is inadequate
# because sometimes root takes ownership of the user's .Xauthority
# file, and then gdm puts the file elsewhere (e.g. /tmp/.gdm2398).
myXconsole()
{
console=`fgconsole`;
displaynum=`ps ax | grep -m1 -e '[X] .* vt'$console | sed -re 's!.*/X
.*:([0-9]+).*!\1!'`
export DISPLAY=:$displaynum
pid=`ps ax | grep -m1 -e '[X] .* vt'$console | cut -d' ' -f 1`
export XAUTHORITY=$(grep -zx "XAUTHORITY=.*" /proc/$pid/environ | sed -r -e
's/XAUTHORITY=(.*)/\1/')
}
** Affects: acpi-support (Ubuntu)
Importance: Undecided
Status: New
--
power-funcs: getXConsole() doesn't always work
https://bugs.launchpad.net/bugs/239191
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs