[Bug 891294] Re: getXuser() - .Xauthority no longer in $HOME

Daniel Laszlo Sitzer 891294 at bugs.launchpad.net
Wed Nov 16 19:04:51 UTC 2011


Sorry, forgot something. I changed following lines in power-funcs

userhome=`getent passwd $user | cut -d: -f6`
export XAUTHORITY=$userhome/.Xauthority

to

xauth_secret=`ls -1 /var/run/gdm | grep auth-for-${user} | cut -d- -f4`
xauth_file="/var/run/gdm/auth-for-${user}-{xauth_secret}/database"
export XAUTHORITY="$xauth_file"

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to acpi-support in Ubuntu.
https://bugs.launchpad.net/bugs/891294

Title:
  getXuser() - .Xauthority no longer in $HOME

Status in “acpi-support” package in Ubuntu:
  New

Bug description:
  I'm running Ubuntu 10.10 with acpi-support v0.137.
  When I had a look at /usr/share/acpi-support/power-funcs I realized getXuser() will try to look for the .Xauthority file inside of $HOME.

  After some searching I read that Ubuntu 10.10 (using gdm) no longer
  keeps its individual .Xauthority files in the $HOME but under
  "/var/run/gdm/auth-for-$USER-$XAUTHORITY_SECRET/database".

  I also read some people are creating symlinks from their homes to the xauth file (which seams not nice to me).
  So I adjusted the power-funcs script in order to let it find the actual xauth file.

  Hope this is not totally wrong.

  Regards, Lazlo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/891294/+subscriptions




More information about the foundations-bugs mailing list