Hi, Thanks for the patch. Is this the same case with KDM 4 and others? Also we need to be sure that we are backward compatible.
Ritesh On 07/28/2011 03:32 PM, Florian Reitmeir wrote: > Package: laptop-mode-tools > Version: 1.58-1 > Severity: normal > Tags: patch > > --- Please enter the report below this line. --- > > gdm3 moved the .Xauthority file, so the is no access to the X Server > here the patch corrects this matter: > > --- /home/squat/tmp/current/dpms-standby 2011-07-28 > 11:50:23.436597411 +0200 > +++ /usr/share/laptop-mode-tools/modules/dpms-standby 2011-07-28 > 11:59:45.000000000 +0200 > @@ -13,13 +13,18 @@ > user=`ps -o user --no-headers $startx` > fi > fi > - if [ x"$user" != x"" ]; then > - userhome=`getent passwd $user | cut -d: -f6` > - export XAUTHORITY=$userhome/.Xauthority > - else > - export XAUTHORITY="" > - fi > - export XUSER=$user > + export XAUTHORITY="" > + if [ x"$user" != x"" ]; then > + xauthdir=`getent passwd $user | cut -d: -f6` > + if [ -f "$xauthdir/.Xauthority" ]; then > + export XAUTHORITY=$xauthdir/.Xauthority > + fi > + xauthdir=`echo /var/run/gdm3/auth-for-squat-*` > + if [ -f "$xauthdir/database" ]; then > + export XAUTHORITY=$xauthdir/database > + fi > + fi > + export XUSER=$user > } > > > > > --- System information. --- > Architecture: i386 > Kernel: Linux 3.0.0-box > > Debian Release: wheezy/sid > 500 testing ftp.de.debian.org > 500 stable www.debian-multimedia.org > 500 stable security.debian.org > 500 stable ftp.de.debian.org > 500 stable dl.google.com > 500 squeeze-backports mozilla.debian.net > 100 squeeze-backports backports.debian.org > > --- Package information. --- > Depends (Version) | Installed > ==========================-+-============ > lsb-base (>= 3.0-10) | 3.2-27 > util-linux (>= 2.13) | 2.17.2-9.1 > psmisc | 22.13-1 > > > Recommends (Version) | Installed > =============================-+-=========== > acpid | 1:2.0.10-1 > OR apmd | 3.2.2-14 > OR pbbuttonsd | > OR pmud | > hdparm | 9.32-1 > sdparm | 1.06-3 > hal | 0.5.14-6 > ethtool | 1:2.6.39-1 > net-tools | 1.60-24.1 > wireless-tools | 30~pre9-5 > udev | 171-3 > > > Package's Suggests field is empty. > > > > -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention."
signature.asc
Description: OpenPGP digital signature